Re: updating sub-request parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 1, 2010, at 9:21 AM, Daniela Floroiu wrote:

hi,

I need to make an apache sub-request like:

   virtual('.../script.php?param1=val1&param2=val2...');

where the parameters are different from the parameters of the original
request.
I tried to set param1 and param2 in $_GET, $_REQUEST,
$_SERVER['QUERY_STRING'] but without success: what script.php receives are nothing less and nothing more than the original parameters with the original
values.

any ideea how one could touch the parameters being passed to a sub- request?

cheers,
--df

I can see no way of passing parameters to a file called by virtual(). If you really need to do this, consider using include/require. If it indeed needs to be a separate server call, consider doing something with file_get_contents() or curl.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux