FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » part 2 - file exists not working
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: part 2 - file exists not working [message #182920 is a reply to message #182913] Wed, 25 September 2013 05:50 Go to previous messageGo to previous message
David Robley is currently offline  David Robley
Messages: 23
Registered: March 2013
Karma:
Junior Member
richard wrote:

> On Tue, 24 Sep 2013 23:20:58 +0000 (UTC), Doug Miller wrote:
>
>> richard <noreply(at)example(dot)com> wrote in
>> news:6tzjiffjaqy6(dot)1rfg283mi0q9m(dot)dlg(at)40tude(dot)net:
>>
>>> if ($go="go") {echo "x";}
>>
>> Richard, how many times is this now that someone has had to remind you of
>> the difference between = and == ?
>
>
> because it is one of those little things I keep forgetting.
> Like a ; or some other minor syntax error.

Here is a tip for you to manage this particular problem - reverse the order
of the test values; if you forget an = you'll trigger a syntax error.

if ("go" = $go) {echo "x";} // triggers an error
if ("go" == $go) {echo "x";} // works as expected

--
Cheers
David Robley

System halted. There is NOTHING you can do.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [urgent] need solution of Questions, in context of PHP5
Next Topic: Host recommendations (slightly OT)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 02:05:30 GMT 2024

Total time taken to generate the page: 0.04319 seconds