Page 3 of 3

Posted: Thu Aug 17, 2006 9:25 pm
by s.dot
Very hard to pinpoint error

Code: Select all

while($this = mysql_fetch_assoc($that));
{
   //do this
}
Sometimes, i stick a semicolon at the end of the while(). Bet you missed it huh? ;)

Posted: Thu Aug 17, 2006 11:29 pm
by Weirdan
the funny thing is that the information on our personal machines isn't that sensitive. The information in the mainframes is pretty critical, but the stuff on our machines is just not that intense. Oh well, I guess it was bound to happen. Either through policy or legislation, but it was going to happen.
My company has the same policy (though it's 5 minutes, not 10). Nobody ever complained.
Personally, I have a nice habit of pressing Win+L when I get up from my chair.

Posted: Fri Aug 18, 2006 2:53 am
by Jenk
Since some colleagues were happy to play pranks by changing background/wallpaper images to .. questionable content, I too always press windows+L as I get up :)

Posted: Fri Aug 18, 2006 3:36 am
by jamiel
Not really a code mistake (well, depending how you look at it), but I like the memory error's PHP reports:

Code: Select all

PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 52 bytes) in /var/www/*** on line 220
That confuses alot of people.

Also I like the look on someone's face when they get this...

Code: Select all

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/jamiel/test.php on line 18

Posted: Fri Aug 18, 2006 3:37 am
by Oren
Daedalus- wrote:Today, I was writing a class. I finished it and then was wondering why it wasn't being contructed.

I went to look at the __construct function; it was named __autoload

LOL
Thanks for the good laugh Daedalus :D