On Mon, 22 Apr 2002, Edward Bailey wrote:
> if()
> {$filename = "../includes/news.html";

This condition will always return true.

What you are doing here is first executing the assignment:

   $filename = "../includes/news.html";

and then testing the outcome of that assignment (which is 
"../includes/news.html"). 

If you want to test whether or not $filename contains 
"../includes/news.html", then you should use == instead of =

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to