1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

Best Tips For Effective PHP Web Development

Discussion in 'Graphics and Design' started by robwilley7, Nov 17, 2011.

  1. robwilley7

    robwilley7 Member

    Joined:
    Jun 20, 2011
    Messages:
    465
    Likes Received:
    10
    Trophy Points:
    18
    Here are some best for effective PHP web development.

    1.Making use of its Core Functions and Classes: -Before you take on a project, remember to go through the PHP manual to check if the function that you intend to develop does not already exist.

    2. Sanitizing Data that needs to be fed into the Database:-The best way to avoid the issue of SQL injections is to sanitize the data before hand

    3. Avoid Over-Commenting the code

    4. Turning on Error Reporting

    share your views.
    thanks
    Loading...
  2. WebStudio Pros

    WebStudio Pros Member

    Joined:
    Jul 25, 2011
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    I saw a similar thread posted in another forum. Well this time I have to ask something. What is the best PHP code cleaner you can recommend?
  3. inflexi

    inflexi New Member

    Joined:
    Nov 22, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Sydney
    We definitely need more articles like this, to get good tips on PHP.Keep sharing your precious knowledge with us.
  4. Suresh

    Suresh New Member

    Joined:
    Jul 11, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Worth sharing dear, for more details about PHP tutorials visit w3schools, its a best site to learn PHP...
  5. alexclark

    alexclark Member

    Joined:
    Nov 24, 2010
    Messages:
    260
    Likes Received:
    5
    Trophy Points:
    18
  6. Jacob_Thompson

    Jacob_Thompson Member

    Joined:
    Sep 27, 2011
    Messages:
    199
    Likes Received:
    3
    Trophy Points:
    18
    Quite impressive post. While developing the website, one should take care of code minimization. Code minimization is a sign of good developer.
  7. rosesmark

    rosesmark Member

    Joined:
    Mar 31, 2011
    Messages:
    203
    Likes Received:
    23
    Trophy Points:
    18
    Location:
    USA
    1) Use Framework Extensively: The use of frameworks is one important factor that highly affects the quality of PHP application development code. If you use frameworks the process of coding picks up speed because frameworks have libraries as well as pre written codes which make it easy to find anything without much of looking around.

    2) Replace strlen() with isset(): By replacing strlen() you can treat strings as arrays. This way the PHP developer can ensure that the developed string is as long as the required string and contains the required number of characters.

    3) Use Ternary Operators: As a general belief, ternary operators are not very beneficial but they do prove helpful when the code is prototyped and small. In case you are designing templates, ternary operators can play an important role.

    4) Memcached: For the successful running of the application it is important that the developer has an easy access to the network and disc. Memcached helps in speeding up the access to disc as and when used in PHP application development project. If the application is on multiple servers, Memcached is of much help.

    5) Use str_replace(): Using str_replace() instead of preg_replace() and ereg_replace() can improve the speed of the application you are developing.

    6) Use a SQL Injection Cheat Sheet: SQL Injection Cheat Sheet makes your application secure. Though there are many other options but this one is far better than all of them.

    7) Upgrade Using Comparison Operators: Comparison operators form an important part of the PHP application development and it is very important that the coders have the right knowledge about these operators and do not get confused about their usage. Even the slightest error in their use can change the purpose of the application.

    8) Use Suppression Operators Correctly: Use suppression operators moderately. Excessive use of these operators can make the code slow and heavy. Hence it is appropriate to use suppression operators in limits.

    9) Stay Away From Brackets: If you as a PHP developer want to reduce the number the characters in your code, reducing the number of brackets can prove to be a helpful option. Keeping or dropping the brackets from an application completely depends on the nature of the application code.

    10) Cut Short the Other Code: This tip might require the developer to compromise with the readability of the code, thus, it should be used keeping in mind the length of the code.
  8. kathygreen

    kathygreen Member

    Joined:
    Oct 3, 2011
    Messages:
    160
    Likes Received:
    2
    Trophy Points:
    18
    Hey,

    Thank you for sharing some great information with all of us, I m sure many find it useful. Do keep them coming.
    Cheers.
  9. samantha1230

    samantha1230 Member

    Joined:
    Mar 28, 2012
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Gender:
    Female
    Testing is another very important factor..
  10. jamesclark

    jamesclark New Member

    Joined:
    Apr 5, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Location:
    India
    You have a good facility and very nice information and tips for php development. thanks
  11. peter 786110

    peter 786110 Member

    Joined:
    May 30, 2012
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Gender:
    Male
    Very informative tips for php development . You have good command on the topic and have explained in a very nice way.
    Thanks for sharing.
  12. Jayden Harris

    Jayden Harris New Member

    Joined:
    Aug 30, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    I am also sharing some good points for php Development

    -Static methods
    -echo() vs. print()
    -Develop With Error Reporting On
    -Use PHP's Inbuilt Functions
    -Do not implement every data structure as a class
  13. sunitha12

    sunitha12 Guest

    You can make use PHP to its maximum possible potential, by following basic guidelines:1. Making Use of Its Core Functions and Classes
    2. Sanitizing Data That Needs to Be Fed Into the Database3. Avoid Over-Commenting the Code
    4. Turning on Error Reporting
  14. paulwintera

    paulwintera New Member

    Joined:
    Oct 5, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Very nice and so important tips Thank for sharing us some tips you know.I think SEO play a big role in the internet specially when we talk about on promoting site.Actually, SEO has a large coverage of different fields. It's a good thing to know that we knew some to be able to relate for some topics and views in the website.
  15. amalayer

    amalayer Member

    Joined:
    Nov 15, 2012
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Well, these are really effective for PHP web development.
  16. Gurmeet

    Gurmeet Member

    Joined:
    Feb 8, 2013
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Gender:
    Male
    Location:
    Lucknow
    Great tips for developing a php website. I appreciate your hard work in sharing such a great information.
  17. methwroser

    methwroser Guest

    As we know that PHP is so appreciated & acknowledged platform and it is widely used for developing dynamic and database-driven website. In my view to opt for minimum and influential programming codes and avoid to write the scripts for the same function each time.
  18. idealphilli

    idealphilli Member

    Joined:
    Apr 14, 2013
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Philadelphia , Pennsylvania
    Use the framework properly for the quality of the PHP application code. Don’t use class for every data structure.
  19. mithra

    mithra New Member

    Joined:
    Nov 29, 2012
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Female
    As of today, PHP is probably the most preferred web development languages in the world. There are over 20 million domains on the web that have made use of PHP Web Development techniques. Leading websites such as Facebook and Wikipedia have also used this language along with open source web development tools such as Drupal and WordPress.
    1. Making use of its Core Functions and Classes
    2. Sanitizing Data that needs to be fed into the Database
    3. Avoid Over-Commenting the Code
    4. Turning on Error Reporting

    Hire PHP Developer | Hire Website Design Compnay

Share This Page