alij Posted January 20, 2009 Share Posted January 20, 2009 Hi, I'll make it quick ! This doesn't work: $rss1 = "http://blablabla.xml"; if ($rs = $rss->get($rss1)) This works: if ($rs = $rss->get(http://blablabla.xml)) PS: Everything works fine on firefox. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/ Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 You're using = when you should be using ==. When you say: PS: Everything works fine on firefox. are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741271 Share on other sites More sharing options...
alij Posted January 20, 2009 Author Share Posted January 20, 2009 When you say: PS: Everything works fine on firefox. are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side. Yes ! Absolutely. And, I should use = not ==, the "bug" was due to something stupid actually Thanks anyway ! Problem solved. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741363 Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 And, I should use = not ==, the "bug" was due to something stupid actually Hehe yeah, it usually is Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741366 Share on other sites More sharing options...
revraz Posted January 20, 2009 Share Posted January 20, 2009 What was the bug? When you say: PS: Everything works fine on firefox. are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side. Yes ! Absolutely. And, I should use = not ==, the "bug" was due to something stupid actually Thanks anyway ! Problem solved. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741383 Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 What was the bug? When you say: PS: Everything works fine on firefox. are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side. Yes ! Absolutely. And, I should use = not ==, the "bug" was due to something stupid actually Thanks anyway ! Problem solved. I don't think there was a bug, only mistakes, and at least 1 stupid one. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741386 Share on other sites More sharing options...
revraz Posted January 20, 2009 Share Posted January 20, 2009 Well he said he wanted to use a single = and not == so I wonder what his resolution was. I don't think there was a bug, only mistakes, and at least 1 stupid one. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741519 Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 Well he said he wanted to use a single = and not == so I wonder what his resolution was. I don't think there was a bug, only mistakes, and at least 1 stupid one. Yes, I misread what he wrote. I guess I assumed that he didn't mean that because there is no point to put an assignment operator in an IF statement because it will always be true... Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741521 Share on other sites More sharing options...
revraz Posted January 20, 2009 Share Posted January 20, 2009 I just like to read the "stupid" mistakes because I hate making them myself. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741525 Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 I just like to read the "stupid" mistakes because I hate making them myself. Haha, yeah I know what you mean, now I'm curious... Maybe the OP is too ashamed, I can't blame him though. Quote Link to comment https://forums.phpfreaks.com/topic/141608-1-line-bug/#findComment-741529 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.