> On 8/20/07, N0K <n0k@xxxxxxxxxx> wrote: > [snip!] >> 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 > [snippity-snip!] > > One method: > > [filename=foo.php] > <? > for($i=1;$i<$argc;$i++) { > $things = split("=",$argv[$i]); > $_GET[$things[0]] = $things[1]; > } > include('administration.php'); > ?> > > Then just call it like so (from a Unix-like command line --- > change this as appropriate for Windows, etc.): > > `which php` foo.php varpass=112233 checkpass=Submit > Hello, Thanks for your faster answer. I have to say im runing php cli from linux. And i havent got many idea about php, i only want to run from command line that script. I have test with Daniel Brown's script, but dont work. If you dont specific the password, then you get the html body when run the script and with your script, still getting the html body which request the password. I cant see the code because is encode with Zend, so, i cant give many details about it or modify it. But if it run in the browser, i think it have to run in cli, dont you think ? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php