Hi,
Thanks for replying.

I tried that and now I got a new error:

Warning: fopen(http://www.site.com/a/check.php?ver=2&update=0): failed to
open stream: HTTP request failed! HTTP/1.1 404 Not Found in /blah/i.php on
line 74



What to do? How do I suppress it the error if something goes wrong?

Thanks,
-Ryan

> Hello Ryan,
>
> Wednesday, January 7, 2004, 2:17:11 AM, you wrote:
>
> RA> [EMAIL PROTECTED]("http://www.site.com/product/check.php?ver=2&update=0";);}
> RA>  else{}
> RA> $test_once=1;
>
> RA> One problem, if something goes wrong instead of doing nothing its
> displaying
> RA> warnings....even though I have put a @ in front trying to suppress
> them.....
>
> include() will always generate a Warning if the file fails to open.
> If
> you have no control over the file
> you're trying to open (i.e. it might
> or might not exist) then use fopen() instead. Because the file is
> remote and opened via HTTP it includes the output of it anyway (as
> opposed to the actual source code), so it's
> the same end result as
> fopen().
>
> --
> Best regards,
> Richard                            mailto:[EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to