Thanks Richard,
> BS> My php program uses sends send some information to a .cgi file
> BS> possibly on a different site. That file uses GET to fetch the
> BS> information and prints it out as it would if accessed through a
> BS> browser. But instead I want my php program to intercept this and parse
> BS> what the .cgi file sent out. How can I do this?
>
> There are numerous ways to do this, but I'd probably just use
> something as simple (and reliable) as fopen() using the URL with
> embedded values as the parameter.
>
> $fp = fopen("http://www.yourcgiscript.com?a=1&b=2&c=3/", "r");
Here's what I do next with it. Only now this file
(www.boggle.no/test6.php) times out in the brower.
Do you see something that it obviously wrong here?
<?php
print '<html><body>' . "\n";
print 'test6.php<br>';
$fp = fopen("http://www.boggle.no/message.txt", "r");
$contents = fread($fp);
print $contents;
fclose ($fp);
print '</body></html>' . "\n";
?>
--
B�rge
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php