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¶m2=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