prokhaled
Feb 21st, 2002, 02:53 PM
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 ?
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 ?