RE: [PHP-WIN] command line parameters
| From: | alain samoun | Date: | Wed, 07 Nov 2001 22:02:19 +0000 |
| Subject: | RE: [PHP-WIN] command line parameters | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10282@lists.php.net to get a copy of this message | ||
I think that works even better (Delete the text/html mime):
php -f monkey.php arg1 arg2 ...
A+
Alain
-----Original Message-----
From: Darvin Andrioli [mailto:darvin.andrioli@caricese.it]
Sent: Wednesday, November 07, 2001 8:55 AM
To: Arnout van der Kamp; php-windows@lists.php.net
Subject: [PHP-WIN] R: [PHP-WIN] command line parameters
>From command line run
php monkey.php arg1 arg2 ...
inside monkey.php put:
$banana=$argv[1]; // first parameter
$apple=$argv[2]; // second ...
Hope this help you.
Bye
Darvin
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net