Discover the best of the web!
Learn more about Digg by taking the tour.
21 Mistakes made by PHP Programmers
zend.com — If you are already a PHP Programmer, you will find the mistakes outlined here familiar...if not, then do have a look at it in order to programme better.
- 845 diggs
- digg it
- windwaker, on 10/12/2007, -0/+022. Not creating functions.
- krembo, on 10/12/2007, -5/+1PHP is another Israeli invention, just like the first VOIP technology, the ZIP algorithm ,ICQ the first instant messaging program and many others... Isn't that amazing that such a small country with just about 5-6 million citizens has contributed so much to everyone?
Now ask yourself what did 1 milliard muslim has contributed to you in the last decades... - mattclare, on 10/12/2007, -0/+023 Mistake - Thinking PHP is an Israeli creation.
Rasmus Lerdorf, a Danish-Canadian, born in Qeqertarsuaq, Greenland created PHP.
Andi Gutmans and Zeev Suraski, both Israeli, did a lot of work on PHP and it would not be what it is today if they didn't decide to do their university compiler assignment on PHP and if there was no ZEND Technologies. None the lass, Rasmus Lerdorf, currently employed by Yahoo, created PHP.
Check the facts: http://en.wikipedia.org/wiki/Rasmus_Lerdorf, http://en.wikipedia.org/wiki/Zend_Technologies, http://www.php.net/manual/en/faq.general.php - fyre2012, on 10/12/2007, -1/+0Zend rocks...i use it exclusively... for php it kicks Dreamweaver's ass!
- mwilliams256, on 10/12/2007, -0/+0This tutorial won't solve any of most PHP developers problems, but the nature of the mistakes does tell you something about the quality to expect from the majority of PHP scripts.
- Beanis, on 10/12/2007, -1/+0The article starts with some strong points, but by the end they are getting into general programming mistakes and not really focusing on PHP, which happened to be something they listed as a mistake.
It says there are 25 comments, but I only see 5 with a -3 comment view threshold. Is anyone else seeing the others? - nthitz, on 10/12/2007, -0/+0Dated September 7, 2000
Good read, but really outdated. - dracula, on 10/12/2007, -0/+0right now: there are 6 comments with a neutral threshold, and 7 with a -1, -2 or -3...
but there definitely arent 27 comments being shown - ciaocibai, on 10/12/2007, -0/+0someone stole the comments! i'm viewing at 'spam' and my comment from last night is still not here!
- playastation, on 10/12/2007, -0/+0this stuff all looks like common sense
- Harlequn, on 10/12/2007, -0/+0didn't load into safari
- cybrenergy, on 10/12/2007, -3/+0Problem #1 > Using PHP in the first place.
- mcspectrum, on 10/12/2007, -0/+1This is really, really old. Some of the stuff still holds true, but a lot of stuff (like objects) have really improved with PHP 5 (and some stuff with later versions of PHP 4 as well). I wish they would update this article, because I still find it linked to all over the place.
- windwaker, on 10/12/2007, -0/+0cybrenergy: but PHP rocks for what it does.
- geezusfreeek, on 10/12/2007, -0/+0In response to number 16, "Not separating client side from server side," I must disagree completely. This is not what PHP is designed for. PHP was never designed for running these huge web applications people are making today. PHP itself is an actual templating system with some smartness to it, not a fast, clean language for large, complex applications. If anybody has an application implemented in pure PHP that is complex enough to warrant a division of this sort, they are not using PHP as it is best used. Make your huge, sloppy backends in a different language ad environment, please.
- kb9okb, on 10/12/2007, -0/+0Actually I've known dispatchers to use Google Maps and Yahoo Maps... sometimes to augment their own GIS technology, and in many cases where they don't have any modern mapping technology. Many dispatch systems only have paper maps. Which would be faster... trying to find an address using a big paper map on the wall with newer streets penciled in... or searching Google Maps / Yahoo Maps / Mapquest? I don't know about you, but if my life depends on response time... I hope they use all resources available to them.
- jtms1200, on 10/12/2007, -0/+0in response to geezusfreeek, I must disagree with your disagreement. I am a professional PHP developer and I build web apps that are every bit as efficient as any other scripting language or CGI implementation of C++, Java etc. PHP is just a fancy wrapper for C... what else do you want? If your really worried about speed then just run your PHP installation in CGI mode.
- znxster, on 10/12/2007, -1/+0old page, but i can still digg it
- geezusfreeek, on 10/12/2007, -0/+0jtms1200, I wasn't referring to execution speed. I was talking about the complexity and maintenance of an extremely complex program written in PHP. Take a huge PHP program and compare it with a functionally equivalent version of it written in a language not designed as a template language and the latter will probably be much easier to read, modify and add to.
- jtms1200, on 10/12/2007, -0/+0Well I guess if you want drag and drop stuff stick to your .NET = )
I will keep writing kick ass, maintainable web apps that keep business logic separated from the presentation layer (using smarty).
Browsing Digg on your phone just got easier with our enhancements to the