Re: Fopen errors out when opening a URL
| From: | Analysis & Solutions | Date: | Wed, 17 Jul 2002 00:20:19 +0000 |
| Subject: | Re: Fopen errors out when opening a URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107989@lists.php.net to get a copy of this message | ||
On Tue, Jul 16, 2002 at 11:08:19AM -0400, Conover, Ryan wrote:
>
> I am trying to do a simple
> fopen("http://www.weather.com/index.html", "r");
>
> For some reason I cannot Open any URL's after trying several.
>
> Warning: stat failed for Resource id #1 (errno=2 - No such file or
> directory)
If you're getting a resource id, your fopen() worked fine. The failure is
on some other line in your code. You need to pin down exactly which line
it is.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409