news
Welcome
We've just launched the brand new site. It's brand spanking new, so there's bound to be some bugs. If you find any, please let me know [posted on 1/11/2007]
RSS Feed
I've just fixed a problem with the site's RSS feed - now it should validate properly. [posted on 31/10/2007]
Tutorial Submission
To get a PHP tutorial submitted to this site, just create a free account. Once you do this, there will be a "add a tutorial" link on the top right [posted on 30/10/2007]
tutorials 
5 Helpful Tips for Creating Secure PHP Applications
in PHP added by goodphptutorials, 3 days ago advanced tutorials security
PHP is one of the most popular programming languages for the web. Sometimes a feature-friendly language can help the programmer too much, and security holes can creep in, creating roadblocks in the development path. In this tutorial, we will take a look at 5 tips to help you avoid some common PHP security pitfalls and development glitches.
comment save reportDesign Patterns Quick Reference
in PHP added by goodphptutorials, 5 days ago design patterns oo programming php5
So every time I am designing something new I find myself either searching Google or opening up a gang of four (GoF) book to aid me. I searched for a bit trying to find a handy-dandy flash card showing class diagrams and purposes for the basic GoF patterns but was unable to locate a good one (for free). So I made my own.If you see any mistakes or improvements please post here and I will update the docs.
comment save reportControllers: Programming Application Logic [PDF]
in PHP added by nirajam, 5 days ago cakephp open source
This tutorial teaches the fundamentals of CakePHP controller. *This is a PDF File, might take some time to load*
comment save reportThe adventure of PHP and the magic quotes
in PHP added by goodphptutorials, 2 weeks ago beginner tutorials compatibility security
Back in PHP 2, the “magic quotes” setting seemed like a great idea. It would automatically escape all of your input so you didn’t have to worry about those pesky SQL injections. Any dodgy characters entered by the user would be automatically escaped by a backslash.
comment save reportFive common PHP design patterns
in PHP added by goodphptutorials, 3 weeks ago advanced tutorials oo programming patterns php5
Design patterns are just for Java™ architects -- at least that's what you may have been led to believe. In fact, design patterns are useful for everyone. If these tools aren't exclusive to architecture astronauts, what are they, and why are they useful in PHP applications? This article explains.
comment save reportTowards RESTful PHP - 5 Basic Tips
in PHP added by goodphptutorials, 3 weeks ago curl framework restful
As we entered a programmable web of applications with APIs the decision to ignore HTTP gave us problems we're still dealing with today. We have an Internet full of applications with different interfaces (GET /user/1/delete vs. POST /user/delete {id=1}). With REST we can say /user/1 is a resource and use the HTTP DELETE verb to delete it.
comment save reportFive 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 reportFreezing and Thawing PHP Objects
in PHP added by goodphptutorials, on 2/12/2008 SPL objects patch php5
One of the many new features that have been added for PHP 5.3 is the setAccessible() method of the ReflectionProperty class that is part of PHP's Reflection API. This method makes protected and private attributes (unfortunately, the class is called ReflectionProperty instead of ReflectionAttribute) of a class or object accessible for the ReflectionProperty::getValue() and ReflectionProperty::setValue() methods, thus making protected and private attributes "open" for full read and write access from the outside.
comment save reportBuilding the Back-End of a Photo Site
in PHP added by goodphptutorials, on 1/12/2008 backend photo screencast
For those of you who have been following the last few screencasts, you must have noticed that each tutorial has been centered around a "photo site" theme. (See Scanning Folders With PHP, How to Dynamically Create Thumbnails, and Create a Photo-Admin Site Using PHP and jQuery. Today, we'll build the backend for a photo site. This tutorial will teach you how to add, delete, and update photos.
comment save reportBuilding semantic Web CRUD operations using PHP
in PHP added by goodphptutorials, on 30/11/2008 crud mysql semantic sparql
Create, Read, Update, and Delete (CRUD) operations are the most basic database operations, but they are also the most crucial. CRUD operations are typically done using the Structured Query Language (SQL) on relational database systems. As the Web is becoming more and more data-oriented, there is a need to shift from SQL-based CRUD operations to semantic Web-based CRUD operations. Learn how to use PHP to perform CRUD operations over the semantic Web.
comment save reportCross-Domain Ajax with symfony
in PHP added by goodphptutorials, on 28/11/2008 AJAX advanced tutorials framework symfony
I recently released a new symfony plug-in, called sfWebBrowser. It's a lightweight HTTP client written in PHP, that doesn't require any additional module to work, and it opens a lot of interesting possibilities. As a matter of fact, it doesn't even require symfony to work - you can use it on any application, with any framework. Refer to its wiki page for installation instructions.
comment save reportHow to Dynamically Create Thumbnails
in PHP added by goodphptutorials, on 27/11/2008 beginner tutorials media thumbnail
In this week's screencast, I'll show you how to upload files and then have PHP dynamically create a thumbnail. Whether you're building an ecommerce site, or just a simple gallery, these techniques will absolutely prove to be useful. If you're ready for your "spoonfed" screencast of the week, let's get going!
comment save reportCreate A Custom Wordpress Page with Different Template
in PHP added by goodphptutorials, on 26/11/2008 beginner tutorials wordpress
Recently I needed to create a page in Wordpress that didn't have the sidebar on it. Took me a wile to find the solution, but the one I found works like a charm. Takes a bit of programming knowledge, but not too bad.
comment save reportHow to Create a Mashup by Combining 3 Different APIs
in PHP added by goodphptutorials, on 4/11/2008 advanced tutorials google maps mashup
This tutorial will show you how to create a mashup of three different APIs including integration with Google Maps. This idea came about when I was searching through ProgrammableWeb's API directory for a couple APIs that complimented each other enough that I could use one to provide the other with data. What I came up with will be known as the "Beer Mashup".
comment save report