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 #182946 is a reply to message #182920] Thu, 26 September 2013 20:30 Go to previous messageGo to previous message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma:
Senior Member
David Robley <me(at)home(dot)invalid> wrote in news:l1ttfv$nt8$1(at)news(dot)albasani(dot)net:

> 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

Predictable result: richard posts here asking why he's getting the error.

> if ("go" == $go) {echo "x";} // works as expected
>
He can't remember the difference between = and ==, how do you expect him to remember
that?
[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: Sat Nov 30 06:58:29 GMT 2024

Total time taken to generate the page: 0.04189 seconds