SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard PHPycho's Avatar
    Join Date
    Dec 2005
    Posts
    1,201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a good php coding format ???

    Hello everybody..
    i am back with some questions..
    i am trying to develop my own php coding format..
    For example:
    db>dbConfig.php (db configuration file)
    >db.class.php (db handlining functions)

    images> here goes the static images..

    pics >here goes the dynamic images ie uploaded etc..

    js > here goes the .js files

    css > here goes the .css files

    etc etc..

    and there may be different classes, libraries....

    I want to develop a totally complete OO coding format (somewhat near to MVC), for example writing different class for mail handling,
    error handling, session hanlding, file handling
    for that i need help of yours...
    Lets share our coding format over here so that a newbie can get
    a bit idea to develop the effiecent and effective one...
    thanks in advance to all of you

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Not entirely sure I follow your meaning - do you mean a coding style, and rules about variable naming, comments, indentation etc?

    If so, you can start a war.

    Still, heres a few so you get the idea. If its not what you meant then do try and explain to us again.
    http://www.phpbuilder.com/columns/tim20010101.php3
    http://framework.zend.com/manual/en/...ing-style.html

    Or just google "php coding style", look out for PEAR and Zend.

    Dont worry if you find it all a bit anal, you will see the sense after a while. I think its real important if you want to work in a team environment, or work on shared projects.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •