Re: getting arguments from a shellscript into $_REQUEST when faking call from a web server
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: getting arguments from a shellscript into $_REQUEST when faking call from a web server

From: Geoff Winkless <usenet-at-geoff-dot-dj@[127.0.0.1>
Date: Fri Jul 15 2005 - 17:35:38 CEST

Jerry Stuckle wrote:
> $_REQUEST is filled in by the web server interface. They do not come
> from the environment. There also are no $_GET, $_SERVER or similar web
> server associated values. If you needed these, you would have to call
> another PHP program to set the values, then include the program you want
> to run.

Mmm. I managed to get it to run by using

        php -r '$_REQUEST["test"]=1; include myprog.php;'

but I wasn't 100% happy with it.

Thanks anyway :)

Geoff
Received on Mon Oct 24 02:08:46 2005