Global's work in http but not in ssh....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
sheila
Forum Commoner
Posts: 98
Joined: Mon Sep 05, 2005 9:52 pm
Location: Texas

Post 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]
Post Reply