PHP shell scripting..
| From: | Ryan Christensen | Date: | Sun, 22 Jul 2001 18:18:34 +0000 |
| Subject: | PHP shell scripting.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59079@lists.php.net to get a copy of this message | ||
I have some questions about using PHP as a shell scripting language...
mainly how you pass arguments to a script on the command line. Say I'm
using:
--------------------------
#!/usr/local/bin/php -q
<?
print "I am: $name\n";
?>
--------------------------
How do I define test from the command line (as an argument while
executing the script)?
Thanks in advance for the help!
---------------------
Ryan Christensen