Re: updating sub-request parameters

From: Date: Tue, 02 Nov 2010 22:33:11 +0000
Subject: Re: updating sub-request parameters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-309253@lists.php.net to get a copy of this message
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.

« previous php.general (#309253) next »