RE: [PHP] Running php from shell - passing parameters
| From: | Martin Towell | Date: | Sun, 17 Feb 2002 23:11:59 +0000 |
| Subject: | RE: [PHP] Running php from shell - passing parameters | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85127@lists.php.net to get a copy of this message | ||
$argv and $argc are prob. what you're after - dunno if there's any parameter
parsing functions - but it's a start
HTH
Martin
-----Original Message-----
From: Bostjan Marusic [mailto:bostjan.marusic@megaklik.si]
Sent: Monday, February 18, 2002 10:00 AM
To: php-general@lists.php.net
Subject: [PHP] Running php from shell - passing parameters
I have to run php script from Linux shell.
I have no trouble except with passing the parameters.
What is the right sintax to pass them to the script?
I would like to do something like this:
/usr/local/bin/php ./test.php param=value
Best Regards,
Bostjan Marusic
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php