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

Your name:

Reply:


Posted by Geoff Winkless on 10/17/55 11:21

Hi

My knowledge of php is regrettably poor but I need to call a third-party
php script from within a bash cgi script (don't ask why, it's a long
story). Now normally (with eg perl-cgi) to do this I need to set
QUERY_STRING and REQUEST_METHOD appropriately; however with php this
doesn't work, the $_REQUEST array is empty.

$ export QUERY_STRING='test=1&wibble=2';export REQUEST_METHOD=GET;php -n
-r 'print_r($_REQUEST);'
Array
(
)
$

What do I need to set in order for the _REQUEST variable to be populated
correctly?

Thanks!

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

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