You are on page 1of 4

10 Handy PHP Tips For Software Developers http://www.efytimes.com/e1/fullnews.asp?

edid=113454

Thursday, August 15, 2013

| Electronics | Solar | Consumer Electronics | Infotech | Linux & Open Source | Smartphones |

Tablets Search
| Science & Technology | NIWEEK 2013

Home >> Science & Technology >> Features

10 Handy PHP Tips For Software Developers


PHP is one of the most popular languages amongst the developers. These
tips can help improve the PHP development.
Rate this news: (0 Votes)
Wednesday, August 14, 2013: PHP is a server-side scripting Developers, PHP, 10,
language designed for web development but also used as a Programmers, Begin,
general-purpose programming language. PHP is now installed on Tips, Objects,
more than 244 million websites and 2.1 million web servers. Production, Removing,
Server, Functionality,
Hence, it becomes all the more important to master this
Coding
language. Here are ten tips that programmers must keep in mind
before they begin programming in PHP:

Use OOP– As stated on htmlgoodies.com, Object Oriented Programming or OOP is a


method of programming that uses classes or objects connecting things together, removing
the requirement of repetition of codes and making the basic tasks of production quite
simple. Objects are primarily classes that gather a group of functions into one and cover
them in a wrapper which can be reused time and time again eliminating the need to
rewrite functionality or procedures each time you need to do something.

Keep off from anything ending with _once()– As programmers, it is well known that
include() gives a warning if it fails, whereas require() kills the script with a fatal error
whenever it fails. Using include_once() and require_once() is too overbearing on server
resources. Nothing can be done about this and this is how PHP is set up. Always keep in
mind that using these terms will kill your server resources especially on a huge
framework. Planning your codes properly will help you to do away with it.

Work with error reporting on- You must ensure to turn the error reporting to E_ALL
before commencing any new project. This must be switched off just 10 seconds before
SUBSCRIBE TO EFYTIMES
going into production mode. It will prevent any error from occurring during the running of Receive the latest reviews, how-tos, news & more.
the project.

Utilise a Framework If Need Be– Using Frameworks which aid in doing difficult things Enter your email address:
can assist but you should learn the functioning of the frameworks to begin with to make
things simple. It also decreases your chances of writing a bad code when someone has
already done most of it for you.

Utilise PHP's Inbuilt Functions– Use the built in PHP function count(), for all your
Subscribe
counting requirements. PHP comes with many built-in functions assisting the user in every
Delivered by FeedBurner
way it can. So ensure that you have read the manual to ensure you are doing it in the best
way possible.

Keep your Database Protected- The ideal way is to use mysql_real_escape_string() for
all database before adding it to the database. This function protects all strings in terms of
quotes and other functions that could affect your database or has a malicious code. Ensure
to make use of this as the first step towards protecting your data.

1 of 4 08/14/2013 11:42 PM
10 Handy PHP Tips For Software Developers http://www.efytimes.com/e1/fullnews.asp?edid=113454

Don’t Use GET Use POST– POST is safer especially when using form submission. GET is
simple to emulate as all one needs to do is add something to their address bar and they
can hack the project.

Draw Before You Code- It is a good idea to think out the mechanics of your application
before starting on coding as it will help in removing the difficulties in your head and avoid
the major headache that comes with the facepalm that makes you realize that all you have
done is either wrong or simply silly.

Know Your Project– Make an effort to understand what you plan to do with your project
before sitting down to code it. Not understanding your project will only prevent you from
building it.

Code Code Code– There is only one way that you can become a good developer that is
by coding again and again. Code real things that interest you and not something that is of
no use. Make what interests you, it will help you to learn.

Most popular

Print Email Post Comment (Total Views: 459) Daily Weekly

BSNL Intros Four New Data Plans For


41
Tweet Customers
Share Sony Xperia M Coming On 18 Aug For Rs

12,990

Uninor Offers Free GPRS On Independence


Science & Technology News
Day
10 Handy PHP Tips For Software Developers LG Vu 3 Set To Be Launched Soon!
Mark Shuttleworth Still Optimistic On Hitting $32m Ubuntu Edge Goal
Windows 8.1 To Arrive In October With New Live Tile Size And Much More Lava Launches Budget Android Smartphones
IBM Develops Silicon-Based Thinking Chips
Asus To Halt Production Of Windows RT Tablets 3G 402 And 3G 356

Press Release
SAP and the Women’s Tennis Association ... Jetstar Soars Towards Paperless Cockpit ...

Now Purchasing A Mobile Will Help You ... GreenDust Launches Its First Ever Brand ...

Vodafone India’s Response To TRAI ... Infinera And DANTE Set Guinness World ...

Distinguished Jury To Decide The Final ... iBeta Completes DEA EPCS Biometric ...

Special Independence Day Offers From ... Infibeam Gives You Mrp Se Aazaadi ...

Freedom From PNR Hassles For Android ... ASUS Launches Its 1st Exclusive Store ...

SAS® Anti-Money Laundering Named Best ... LSI Demonstrates New SandForce® Flash ... Features
10 Handy PHP Tips For Software Developers
Associated Banc-Corp Selects ... ESET Monthly Threat Report For India ... PHP is one of the most popular languages
amongst the developers. These tips can help
Arbor Networks Launches Advanced Threat ... iGATE Wins Asia’s Best Employer Brand ... improve the PHP development....

Drippler Hits 200 Million Drips And ... Ovum predicts The Global Enterprise ... 8 Must-Have Android Apps For You!
These apps allow you to do manage your bank
account, to-do list, listen to radio, edit and modify
McAfee MOBILE SECURITY Offers Enhanced ... IPC Technology Market Research ... images, and do so many day to day things,
which is w...
Nokia Store continues Its India Growth ... Mushkin To Unveil Scorpion Deluxe PCIe ...

Accentium Launches Coupons Site, ... Defense Mobile Corporation Sing ...

World’s First Integrated In-Store ... New 8GB Raspberry Pi Bundle Also ...
Videos
Experience Exemplary Connectivity On ... Arise India Ltd. Enters The Dynamic ...

2 of 4 08/14/2013 11:42 PM
10 Handy PHP Tips For Software Developers http://www.efytimes.com/e1/fullnews.asp?edid=113454

Amazon Web Services Makes Mobile App ... Abu Dhabi Commercial Bank Goes Live ... First Look: LG Optimus G
The phone sports a high-end display and
The Cube(R) And The CubeX(TM) Are The ... Gartner Survey Shows 75 Percent Of ... comes powered by a powerful processor.
...

ASUS Announces ET2301 AiO PC with ... Foxconn Plans To Establish Cloud ...
Create QR-Codes For Free
Ugam Solutions Partners With Leading ... Sterlite Technologies Helps Tata Power ... TEC-IT releases the freeware QR-Code
Studio to provide a quick and convenient
Samsung Introduces World's First 3D ... Introducing iBall Slide i9018: India’s ... way of QR code creation for every
application scenario....

Maxx Mobile Launches Fifteen New Mobile ... Program Features Keynote By Bully ...

Business Leadership Award Winner's ... Ripley SA Selects Manthan Systems to ...
Dialogue
Lenovo Unveils A Range Of Performance ... Pre-Book Nokia Lumia 625 Via ...
“Linux Jobs Are On The Rise”
Infor Partners With CAD Service To ... Microsoft Ventures Accelerator ... If you are working in the open source
space, you have all the chances of being
hired by the biggies. Linux jobs are on
Seagate Joins Industry Leaders To Form ... Accenture Expands Product Lifecycle ... the rise, claims Ralf Flaxa, vi...

Skava Is Looking To Hire Smart


Programmers
It's not just about knowing how to code.
These days, it's also about smart
programming. Young companies like
Skava Inc are looking to hire smart
engin...

NIWEEK 2013
NI cDAQ-9188XT Takes Measurements
In Rugged Environments
NI has improved its NI CompactDAQ
platform by adding a new rugged
chassis, and has introduced NI
CompactDAQ support for the LabVIEW
Electrical Power S...

Watch Keynotes Of NIWeek 2013 Live!


In this edition of NI Week, you will get to
hear the key combination of NASA,
Carnegie Mellon, and National
Instruments as a part of the keynote....

EFY India
Like

7,447 people like EFY India.

Facebook social plugin

3 of 4 08/14/2013 11:42 PM
10 Handy PHP Tips For Software Developers http://www.efytimes.com/e1/fullnews.asp?edid=113454

Comments
Toodlelew said: "If you are going to depend on ..." on

20 Linux Tips Worth Trying '


Prashanth Pai said: "the global average of 18.3Mbps.

..." on Top 10 Countries With Best Internet ... '

Events
12 Nov: LASER World Of PHOTONICS INDIA

home archives contact us advertise with us

Magazines Portals Directories Events News Verticals Educational Institute


Electronics for You electronicsforu.com Electronics Annual Guide EFY EXPO Electronics EFY Techcenter
Open Source for You efytimes.com EFY Awards Infotech
Facts for You bpotimes.com EduTech Expo Linux & Open Source
Electronics Bazaar linuxforu.com OSIWEEK Expo Consumer Electronics
Science & Technology
BPO

© Copyright 2013 EFY Enterprises Pvt. Ltd.


All rights reserved. Reproduction in whole or in part in any form or medium without written permission is prohibited.
Usage of the content from the web site is subject to Terms and Conditions

4 of 4 08/14/2013 11:42 PM

You might also like