R: [PHP-WIN] command line parameters

From: Date: Wed, 07 Nov 2001 16:55:08 +0000
Subject: R: [PHP-WIN] command line parameters
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10272@lists.php.net to get a copy of this message
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 > -----Messaggio originale----- > Da: Arnout van der Kamp [mailto:arnout@games.lostboys.com] > Inviato: mercoledì 7 novembre 2001 17.17 > A: php-windows@lists.php.net > Oggetto: [PHP-WIN] command line parameters > > > How do you set command line parameters with PHP for windows? > My script is called monkey.php and I want to set $banana to some value > > php monkey.php?banana=1 > > does not work. PHP does not execute and just returns > > php monkey.php banana=1 > > does not work either. Then the value banana is not set. > > how do I fix this? > -- > Later > Arnout http://www.supras.nl > "Life is too short to drive an opel" > > > > -- > 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 > >

« previous php.windows (#10272) next »