Posted by Kimmo Laine on 02/14/07 10:02
"Gunnar G" <debian@comhem.se> wrote in message
news:y1AAh.33715$E02.13389@newsb.telia.net...
> Hi.
> If I execute a php script with exec
> exec("foo.php"); and foo.php reads the $_GET array (can't change that I
> must
> work with $_GET), how can I set values to $_GET array?
> Can I do it directly in foo.php?
>
> $_GET['foobar'] = 4;
>
> Or exec(foo.php?foobar=4); ????
I'm not sure if that works, but how about
file_get_contents('http://www.example.com/path/to/script.php?foo=bar');
OR
$_GET['foobar']=4;
include('foo.php');
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|