...

View Full Version : SERVER SELF doesn't work



buildrebuild
03-24-2007, 03:50 PM
Hi,
I have two web sites and I can use this in one but not the other. Both run PHP and run on exactly the same server and settings.

<?php echo $PHP_SELF ?>

It prints out the correct url in one site but doesn't show in the other?
Here are two links with exactly the same markup and coding...

(WORKS!!!!) http://www.buildrebuild.com/mp3/self.php
(DOESN'T WORK!!!!) http://www.kodekontrol.com/portfolio/projects/dynamic.php

Anyone ever have problems like this. It's totally unexplainable!!!

Thanks
CB

CFMaBiSmAd
03-24-2007, 04:25 PM
While it is possible that both of these domains are on the same server (for example if you have obtained dedicated IP addresses for each of them), they have different IP addresses and are likely on two different servers. Just because they are both under one hosting account/reseller account, does not mean they are automatically on the same server. Here are the IP addresses -

kodekontrol.com. A 217.10.138.246
buildrebuild.com. A 217.10.138.243

So, they could have different register_globals settings if they are in fact on different servers.

If they are in fact on the same server, than a .htaccess file could be setting register_globals different between the two.

What does a script file containing a phpinfo(); statement show for the register_globals setting for each?

Edit: The fix, of course, is to use the register_globals independent $_SERVER['PHP_SELF']

Edit2: In checking your domains at www.dnsreport.com, both of them have several warnings associated with mail, that email you send will receive a high rank as junk/spam by most recipient mail systems.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum