Thread: Please Help
View Single Post
Old 04-13-2005, 05:44 AM   #10 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
that's great to know DJ. so i guess if you are not writting command-line scripts i guess it still doesn't matter? and if you are, then it still doesn't matter if you are using v 4.3.x or greater?

hmm .. i just tried to run this script in CGI command-line mode, and neither variable returns anything.
PHP Code:
#!/usr/bin/php
<?
echo "script name: ".$_SERVER['SCRIPT_NAME']."\n";
echo 
"php self: ".$_SERVER['PHP_SELF']."\n";
?>
Quote:
Originally Posted by output
$ ./test.php
Content-type: text/html
X-Powered-By: PHP/4.3.10

script name:
php self:
aahh, .. a simple print_r($_SERVER) will show there is not a lot of server vars available... and a whole different set of them too. ( SCRIPT_NAME doesn't even show up. PHP_SELF does, except it has no value )

i'm testing on php version 4.3.10

i think it's safe to say it still doesn't matter whichever you use.
__________________
Mike
sde is online now   Reply With Quote