|
-
Feb 21st, 2002, 03:53 PM
#1
Thread Starter
Hyperactive Member
Ignore error and continue
in this example it will open 1.txt , 2.txt and 3.txt
for ($i = 1; $i <= 3; $i++)
{
$FILE=fopen("$i.txt","r");
$Find=fgets($FILE,4096);
fclose($FILE);
}
the problem:
1.txt file is not found now so it give me error message. I want to ignore this error message and continue the program without give me any error message . how can I do that ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|