Re: [PHP] fopen warning error message

2001-02-08 Thread Chris Lee
@ sign is your friend. if ($file = @fopen('...', 'r')) { } else { } -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Ade Smith"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > I am trying to open a file which exists remotely(code works), b

[PHP] fopen warning error message

2001-02-08 Thread Ade Smith
Hi I am trying to open a file which exists remotely(code works), but there may be times when it may not exist, however when I change the url so that it purposely doesn't exist to test this situation I get an error message like the following: Warning: fopen("","r") - No error in test.php on line