News Feed
Sections




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

BinaryTides.com:
40+ Techniques to enhance your php code (3 Part Series)
April 11, 2012 @ 09:52:57

On the BinaryTides blog there's a series of posts that share some tips and suggestions aimed at helping you and your code be the best they can be - things to enhance your application (including suggestions not just about code but also about environment and development practices).

The three posts in the series include tips like:

  • Maintain debugging environment in your application
  • Collect all output at one place , and output at one shot to the browser
  • Set the correct character encoding for a mysql connection
  • Do not gzip output in your application , make apache do that
  • Don't check submit button value to check form submission
  • Process arrays quickly with array_map
  • Avoid direct SQL query , abstract it
  • Never set error_reporting to 0
  • Make a portable function for executing shell commands

Obviously, not all of these will apply in all situations, but they're an interesting list. Most will come with good explanations and code samples when appropriate.

0 comments voice your opinion now!
technique enhance list suggestion bestpractice


blog comments powered by Disqus

Similar Posts

Anthony Ferrara: Alternatives To MVC

NETTUTS.com: 5 Amazing New WordPress 2.7 Features

Rich Zygler's Blog: Beware the Lone Wolf PHP Developer

Community News: Zend/PHP Conference & Expo Wrap-ups

CodeSnipers.com: Perl vs. PHP - Datatypes[arrays|lists|hash|map]


Community Events

Don't see your event here?
Let us know!


library performance interview release podcast php7 example series community language application api configure conference laravel symfony2 introduction voicesoftheelephpant framework opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework