Jump to content

[SOLVED] Domain checking problem : $_SERVER["PHP_SELF"]


Dave3765

Recommended Posts

I'm trying to insert some html if the browser location is my top level domain (www.mydomain.com) only, and I have the following code which appears not to work :-(

 

Can anyone cast an eye over it?

 

<?  
$spacecheck = $_SERVER["PHP_SELF"]
if $spacecheck = "/" {
echo ('<td height="27"></td>')
} else {}
?>

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.