Page 2 of 2

Posted: Wed Apr 12, 2006 4:52 pm
by Christopher
sheila wrote:What does this show?

Code: Select all

print_r($_SERVER['argv']);
You'd have to run it to see what is shows on your system.

Posted: Wed Apr 12, 2006 5:59 pm
by sheila
arborint wrote:
sheila wrote:What does this show?

Code: Select all

print_r($_SERVER['argv']);
You'd have to run it to see what is shows on your system.
I've run it on my system and it prints the name of the script. My question was to the OP.
Does it show the script name for him?

Edit: Actually that prints the array of arguments. The script name is in $_SERVER['argv'][0]