Fopen and streams
| From: | stryder | Date: | Wed, 28 Jan 2004 14:53:47 +0000 |
| Subject: | Fopen and streams | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176056@lists.php.net to get a copy of this message | ||
Hi, first time poster here.
Having some trouble with a line that used to work, but doesn't now.
$pg = fopen("http://$ip/mypage", "r");
Gets me:
Warning: fopen(http://10.1.1.233/mypage): failed to open stream: HTTP
request failed!
And then it spits out the data from that page anyways. What's going on
here? This was working on my other box a few days ago.
And I've tried it with and without the variable for the ip address/url.
--Stryder