are you making one of these ten php mistakes?

ten short questions to you as php programmer may reveal common errors you´re doing like if you secure cookie data or if you deal the comparison operators the best way. It´s short and easy to understand. Check out the comments, you´ll see that there is much more to know, but for a glance, it´s ok. Have a look at the informative phpbench as well.

I think, some of these mistakes would be made by me, but since I mostly develop for TYPO3, I´m rescued by it´s wonderful core api.

updates for TYPO3 systems

this feels good. all systems i am responsible for are updated now. yesterday evening crucial updates for TYPO3 of the 4.* branch were released. the update for TYPO3 is quite easy, you upload the new sources and change the existing symlink target to the newly uploaded sources folder. if you have a server still running php4 you will need to edit a line in one file and you’re good to go. otherwise you will get fancy errors in your apache server log. i got some on one server looking like


[Wed Jan 21 12:22:31 2009] [error] [client 87.236.*.*] Symbolic link not allowed: /var/www/ ... /index.php

you know, smart people check back the TYPO3 package page before download, but somehow i went directly to sourceforge to grab the necessary bytes. it would have saved me thirty minutes if i read the issue for php4 on TYPO 4.0.10 and 4.1.8:

you just edit file /t3lib/class.t3lib_div.php on line 1381. the keywords public static must be removed, they only work in php5 environments. save and that´s it. i think my post as snippet is obsolete, the TYPO3 guys will deliver an updated package release, soon.

update: as i mentioned, the script edit is not necessary anymore for php4 servers. the new packages just work it. (versions 4.0.11 and 4.1.9)