My .php file contains:
$f=fopen("welcome.txt","r") or exit("Unable to open file!");
while (!feof($f))
{
$x=fgetc($f);
If $x="<"
{
echo"oooooooooooooooooo";
}
echo $x;
}
fclose($f);
?>
and My welcome.txt file contains:
hello world
its title
When I run the php file in wamp, nothing happens, but If I remove the below part, it works!
If $x="<"
{
echo"oooooooooooooooooo";
}
But I dont want to remove this part, How can I fix it? Do you have the same problem?
Thank you
2006-08-12
10:26:01
·
3 answers
·
asked by
QuestionAnswer
2
in
Computers & Internet
➔ Programming & Design