Re: Pass $_GET to php cli.

From: Date: Mon, 20 Aug 2007 12:44:15 +0000
Subject: Re: Pass $_GET to php cli.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-261042@lists.php.net to get a copy of this message
On Mon, 20 Aug 2007 14:15:47 +0200, N0K <n0k@fujitsu.es> wrote: > Hello. > > I trying something without results. > > I have a zend optimized php script. This script only request you a > password, and then you go to admin page. > If a do in a browser: > http://www.example.com/administration.php > > Then i go to this web where the password is request. I put the password > and go to the administration web. > > But if i do in a browser: > > http://www.example.com/administration.php?varpass=112233&checkpass=Submit > > Then i go directly to the administration web, without request pass. > > So, im trying to the the same in php command line > > i have test with many things, but i dont know how to specify this > variable to the php cli, > some tested example: > > php administration.php --varpass=112233 --checkpass=Submit > php administration.php --"varpass=112233&checkpass=Submit" > php administration.php --"varpass=112233" --"checkpass=Submit > > And a lot of more combination. > > Can i do this by php command line ? > > Thanks and regards. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php You can use the 'argc' and 'argv' arrays for this. http://nl3.php.net/manual/en/features.commandline.php

« previous php.general (#261042) next »