Thread: php question
View Single Post
Old 07-23-2009, 10:12 PM  
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 3,765
where is it pulling 'somesitename' from? from the url it's located at?

Code:
<? $somesitename = $_SERVER['SERVER_NAME']; 
$somesitename = str_replace( 'www.', '', $somesitename);
$somesitename = str_replace( '.com', '', $somesitename);
print $somesitename;
?>
__________________
flexx [dot] aeon [at] gmail
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook