REMOTE CALL question, again
| From: | Thomas Hochstetter | Date: | Fri, 16 May 2003 20:55:45 +0000 |
| Subject: | REMOTE CALL question, again | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147974@lists.php.net to get a copy of this message | ||
Hey there,
Yes, i am still battling with this remote file thing:
I get all done exept catching a variable from another script (the code is
below):
if (substr ($HTTP_REFERER, 0, (strlen($HTTP_HOST) + 7)) ==
"http://".$HTTP_HOST)
{
getpost($stuff);
$vars = str_replace(" ","&",$stuff);
$f = fopen('http://localhost:8080/pdev/cfd/retscript.php?$vars','r');
if ($f)
{
while (!feof ($f))
{
$line = fgets($f,1024);
params($file,$lstr,$id,$stuff);
}
}
fclose($f);
}
else { echo "IP error";}
The retscript.php has a return statement (this will later be an asp file)
which should return us a variable $id that we can write to the file with
params().
Anyone has got an idea?
Thomas
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!