Home » questions » PHP programming problem, Reading from text file!?

PHP programming problem, Reading from text file!?

2006-08-12 14:26:01, Category: Programming & Design
My .php file contains: 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

Answers

  1. injanier

    On 2006-08-12 14:56:09


    Your comparison statement is wrong. The correct statement is: If ($x=="<")
  2. mag

    On 2006-08-12 14:49:39


    you have a wrong syntax in if condition and should be written like this: if ($x < some value) { echo "OOOOOOOOO"; }