Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM DeveloperWorks:
Writing Efficient PHP
Feb 13, 2003 @ 13:21:43

In a posting from Frank and Gaylen Fraley this morning, there's a new article over on the IBM Developer Site that talks about writing your PHP more efficiently.

In this article (free registration required), they give some pointers on writing your code that can not only help things execute faster, but can keep the code cleaner and leaner for future updates. They suggest things like optimizing your loops for the most desired effect first, and removing redundant code to make your scripts' execution cleaner. Also, the suggestion of returning content as it's provided (with output buffering) can do wonders for a slow site.

Overall, it's a pretty good read - especially for someone midway through learning how to code PHP. Then they can read this, take more of it to heart, and integrate it with their code more closely - no "un-learning" here! (Oh, and for those that don't want to have to come back to remember something every time, they have a PDF version you can access with all the same content!)

tagged:

Link:


Trending Topics: