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

Your name:

Reply:


Posted by Geoff Winkless on 11/14/38 11:21

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация