want to join us? register, it's easy | help

browse by tag: tips

sort by

newest, oldest, most popular


category icon

Five good programming habits in PHP

in PHP added by goodphptutorials, on 5/12/2008 best practice habit tips

Just like any language, developers can write code in PHP that ranges in quality from truly awful to very good. Learn good programming habits that can help you bridge the productivity gap. [...] Bad coding habits seem to accompany defects in code and can cause code to be difficult to change without introducing new defects. The following five good habits, when applied to your PHP code, will help you avoid these pitfalls.

comment save report
category icon

PHP programming shortcuts: save time and lines of useless code.

in PHP added by nvez, on 17/8/2010 beginner tutorials how to php5 tips tricks

A nice bunch of tips and tricks that help you save lines of code and have more efficient code

comment save report
category icon

Secure File Upload with PHP

in PHP added by Nolte, on 18/1/2007 file handling file upload security tips

PHP makes uploading files easy. You can upload any type of file to your Web server. In spite of security issues that should be addressed before enabling file uploads, the actual mechanisms to allow this are straight forward. In this tutorial we will consider how to upload files to some directory on your Web server. We will also discuss security issues concerned with the file uploading.

comment save report
category icon

10 Advanced PHP Tips Revisited

in PHP added by goodphptutorials, on 23/4/2009 beginner tutorials security tips

Because of PHP's huge popularity, it has become almost impossible for Web developers not to have at least a working knowledge of PHP. This tutorial is aimed at people who are just past the beginning stages of learning PHP and are ready to roll up their sleeves and get their hands dirty with the language. Listed below are 10 excellent techniques that PHP developers should learn and use every time they program. These tips will speed up proficiency and make the code much more responsive, cleaner and more optimized for performance.

comment save report
category icon

Tips for Working with DateTime in PHP

in PHP added by lornajane, on 9/5/2010 advanced tutorials date oo programming time tips

A few quick tips for working with PHP's DateTime classes, including instantiating the objects, outputting in various formats, and storing dates and times an an accurate and easy-to-use way

comment save report
category icon

10 Principles of the PHP Masters

in PHP added by goodphptutorials, on 4/10/2008 beginner tutorials general tips

With PHP's widespread adoption,it's almost too easy to find a script or snippet to do exactly what you need. Unfortunately, there's no filter as to what is a "good practice" and what's, well... not so good when writing a PHP script. We need trustworthy sources, who have proven they have a solid grasp on the best practices of PHP.

comment save report
category icon

10 Tips That Every PHP Newbie Should Know

in PHP added by goodphptutorials, on 8/3/2006 beginner tutorials tips tricks

I wish I had known these 10 tips the day I started working with PHP. Instead of learning them through painstaking process, I could have been on my way to becoming a PHP programmer even sooner! This article is presented in two parts and is intended for folks who are new to PHP.

comment save report
category icon

Stay away from Bloated Class Methods, actually, bloated ANYTHING!

in PHP added by rvdavid, on 22/3/2008 classes methods oop php5 principles tips

Why are there so many examples of bloated PHP methods out there?! I see a lot of bloated methods being used in examples through sites like phpclasses.org and a very large chunk of a project I’ve recently picked up which a few developers have worked on. Guys! remember! There is no good reason to bloat your methods to over 10-20 lines long and on the rare occasions that you do exceed 10 - 20 lines it would be more the exception to the rule as opposed to being the rule itself!

comment save report
category icon

10 things you (probably) didn't know about PHP.

in PHP added by goodphptutorials, on 22/2/2007 functions general tips

Here's a short list of cool features that might have slipped under your radar as well

comment save report