PHP
  Home arrow PHP arrow Best PHP Practices
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Best PHP Practices
By: James Murray
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 219
    2004-09-20

    Table of Contents:
  • Best PHP Practices
  • It’s like Typing, only with a Pencil
  • What You See is… Well, You Know
  • Get your Hands off MySQL!
  • PHP Time, YAA!
  • Where Do I Start?
  • Loose Ends

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Best PHP Practices


    (Page 1 of 7 )

    One of the things I hear from people and my friends is questions about the best way to work with PHP. They always want to know how to get started on a project, what software to use, how to plan it successfully, and so on. In this article I plan on revealing the “magical secrets” about how I do my PHP programming so quickly with so few bugs.

    What's the Big Deal?

    One night while watching my various cartoons on Adult Swim I got a call from a friend begging me to lend him a hand and tell him how I program PHP so fast and accurately. He was rather disappointed when I told him that a book or a website isn’t what made my skills so impressive to him. After I told him what I did, it improved his PHP abilities tenfold. So I thought it would be useful to everyone to know what I consider to be the best practices while developing PHP. There are many PHP editors out there; trust me I’ve used just about all of them, from full blown “what you see is what you get” editors, all the way to those that are a Windows notepad clone. So I plan on filtering out the best from the worst. On top of that I’m going to be telling you all about the best programs for working with HTML and MySQL, and I’m also going to be talking about how to plan your project, where to get started, and where to go from there. I’m also going to try to explain how to document your code, and how to format your code so that you minimize the amount of time you confuse yourself (admit it your own code has confused you before... at least once).

    More PHP Articles
    More By James Murray


       · I was expecting this professional, anal retentive article and instead I get this...
       · Enough would be to say, that any pro project that gets started, first off lands on...
       · Your articles are almost always enjoyable to read and this one was probably one of...
       · I completely agree! this article was amazingly helpful.But who the heck is...
       · I disagree with your choice of PHP Editors, while you say Zend is a Good editor,...
       · I think there's an editor which is simple to the extreme but is very nice for php,...
       · What a waste of time this article was. Give me my money back!
       · Ok, here's your $0 back..
       · There are some good tips in this article but there is a lot more you can do to save...
       · I should have mentioned this in the 'Purity Balance.' Why not use HTML generated by...
       · I read it and thought, "wtf is this shit?" Dreamweaver/GoLive + MySQL GUI = PHP...
       · i agree on what you have said that the command line is still the best... but i guess...
       · In my opinion it had its good points. My biggest problem with it is the title of...
       · I developing Web applications in PHP since last two years, and i am VERY VERY...
       · I have heard this argument before regarding the apparent slowness of Zend Studio. I...
       · If the text does not need additional formatting, then block quote it with <PRE>...
       · I can code in Assembler; but why would I? Farmers could plant corn by hand; but why...
       · http://www.sextoyssexvideos.com
       · Thanks. Regardless of what people say it was useful. In a way it was a source of...
       · Regardless of what these other people are saying- thank you for helping n00bs like...
       · <a href="http://sextoyssexvideos.com/" title="Sex Toys">Sex Toys</a>
       · You compare a farmer using a WYSIWIG instead of his hands... The only comparable...
       · <a href="http://sextoyssexvideos.com/" title="Sex Toys">Sex...
       · 500 words about nothing.
       · 500 words about nothing.
       · [url=]http://www.sextoyssexvideos.com[/url]
       · [url=http://www.sextoyssexvideos.com/]sex toys[/url]
       · Crap article. What a waste of my time. The author has no idea what "best practices"...
       · I am not new to programming, but I haven't been in the game for about 5 years...
       · Me reading your reply to this article makes me wander a) if you are totaly ignorant...
       · I rarely post anything anywhere but I was so annoyed by this article so I had to...
       · The article wasn't bad, but has absolutely nothing to do with "PHP Best Practice."...
       · just surfin the web and got here with that nice-titled-article of yours. are you...
       · I have to say I was not impressed by this "Best PHP Practices" article at all. In...
     

       

    PHP ARTICLES

    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security
    - Building a Content Management System with Co...
    - Filters and Login Systems for Web Applicatio...
    - Working with the Email Class in Code Igniter
    - Building Your Own System Tray Application Us...
    - Structuring Your Projects for Web Applicatio...
    - Inserting, Updating and Deleting Database Ro...
    - Building Your Own Desktop Notepad Applicatio...
    - Web Application Security Overview
    - Working with the Active Record Class in Code...
    - Generate PDF Documents with PHP on the Windo...
    - Sending Email with PHP Networking
    - Performing Strict Validation with the Code I...
    - The preg_replace_callback() function in PHP





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT