PHP Tips and Tricks

10 Things I Wish I Knew as a Web Programmer 10 Years Ago

Thursday, March 11th, 2010 PHP Tips and Tricks

When I reflect on my past experience as a web programmer, there are many things that I know now that I didn’t know ten years ago. The learning process was valuable, but I could have been at a different spot today as a PHP web programmer if I knew these things earlier. Sometimes you don’t have the info when it would benefit you the most, but my hope is that this list will give you something to reflect on. Read More…

PHP Form Validation

If you program custom PHP applications, you will often times need to work with a form and require certain form fields. A few real world examples would be a contact form, registration form or signup form. This form validation with PHP tutorial shows you a simple and quick method for creating a form page that handles errors and pre-populates fields if there is an error, and a method for processing the php form and validating the information. Read More…

The Most Useful Piece of PHP Code – Looping through Arrays

Working with and looping through arrays is one of the most useful things you can learn how to do with web applications. Anything from forms, API’s to configuration values, arrays make it easy in working with values. Take look at this simple example that illustrates the basics in working with the $_POST array. Read More…

PHP Script Tips: Cool Secrets of PHP

Over the years I’ve come across some things in PHP that are not obvious, but are worth mentioning. This is not meant to be a comprehensive list of all of the useful tricks that you can do with PHP. If you have anything to add to the tips, please comment! Read More…

Facebook API and the Future of Social Networking

Thursday, January 14th, 2010 PHP Tips and Tricks

It is very frustrating to work with a framework system where you cannot get the examples to work properly. It makes it a very time consuming process in getting things to work.

Over the last few weeks I’ve spent a lot of time working with the Facebook API for several different implementations. Logically, I first looked for documentation in how to work with the system to do what it needed to do. That is when I encountered the fact that there are many different ways in using the system, but there is not a lot of clear documentation. Read More…

The Best PHP Framework: CodeIgniter

Sunday, May 10th, 2009 PHP Tips and Tricks

About a year and a half ago, a friend of mine mentioned a PHP framework that I never heard of called CodeIgniter. At the time, I had been working on a custom framework system for a while that worked fairly well. However, given the fact that I was not able to find time in fine tuning the system because of the work load in the shop (with the company I worked for at the time), I was not able to progress the system as far as I liked. Read More…

How to be an Effective Programmer – Organization

In my mind, what makes the best kind of programmer is their ability to organize.

I say this because when you simplify web programming in general, it basically comes down to solving problems. Taking a complicated (or what appears to be complicated) scenario and simplifying it into smaller pieces that you can understand. In my opinion, organization ends up becoming the most important aspect of web programming….even more important the being an uber programmer. Read More…

The Pitfalls of PHP – PHP and Messy Code

Thursday, February 5th, 2009 PHP Tips and Tricks

I really like PHP. I like how it is not overly complex, and how it provides freedom in how to put together websites.

However, what has been growing on me over the last few years is what I don’t like about this freedom. Giving other programmers the freedom to write very sloppy code. An example of this is object oriented programming. If this is utilized correctly in PHP, it is meant to make maintenance and updates a lot easier. It also is meant to save time by giving you access to code that has already been written for the system. However, if you get a PHP programmer writing OOP, but they don’t really understand how to use it….you sometimes end up with what I like to call “nightmare code”. Simple tasks or bugs end up taking hours and sometimes days to figure out, because you can’t figure out what the original programmer was trying to do. Read More…

<< Previous Page