- How to design a great Mobile App
- How to hire website designer or developer?
- How to make your website as mobile friendly and get it ready for Google algorithm change
- Google Now: Digital Assistant gets combined Date display and Travel Overview future
- How to Fascinating Mobile App Experience to Customers
PHP is the popular language for web development and now more than 20 million domains and sites like Wikipedia, WordPress, Facebook and Drupal. This language is easy to learn but only few PHP developers or programmers who make cut above the rest. Practice and experience make the professionals successful. There is a long journey for PHP developers who are looking to make it to ‘elite’ class. Following some tips for PHP developers
OOP is Object Oriented Programming, which always gives you an advantage. It reduces need of code repetition and helps in tie things together. OOP enfolds the functions in to error free programs. Working with OOP you have more logic and less coding.
Don’t End On ‘_once’( )
‘include( )’ means warning when it fails ‘require( )’ which kills the script if comes, across any error. require_once( ) and include_once( ) are heavy on the server resources so its better not to include these especially when you are working on a big framework.
‘Error Reporting’ On
Before start any project turn on the error reporting to ‘E_ALL and turn it off ten seconds before script goes in to production mode. Often professional programmers make these mistakes, error reporting picks up all even lesser discrepancies.
Use Frameworks When need
Often experts said that frameworks make a code much slow than normal. Avoid to writes “Hello World” application each time. Frameworks make things simpler and reduce the risk of wasting time in writing bad codes, use resources, which you have.
For the counting of number of keys only use loop an array and simply incrementing for value of every repetition. Inbuilt functions in PHP such as count () able to replace all the lines and give the same result. PHP integrates many other functions that make the several basic tasks just command insertion.
Shield the Database
Safe suggestion is to use mysql_real_escape_string() for protect all database before added. This function makes the string safe from the nasty codes in terms of quotes.
POST in place of GET
Post is securer than Get, however it is not always possible especially while using form submissions.
Before getting to the task its good to draw projects first, draw schematic even there is scribbling a few lines by this you get basic and clear idea behind the mechanics of application before start coding.
Latest posts by Illahi Bux (see all)
- How to Integrate UBL Online Payment Etisalat Payment Gateway to website or Online Store - August 1, 2017
- How to Work Machine Learning in Mobile Apps - January 31, 2017
- Computational Theory Application of Automata theory in Computer Science - November 21, 2015