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

news


CodeLovely.com starts beta testing

Hi folks, I've launched a new website called codelovely where developers and web designers can get together and share links. It's like goodphptutorials, but users get to vote up or down links that are posted. So, sign up posts some links, snapshots, code or ask questions.

 

tutorials


category icon

Design Patterns Quick Reference

in PHP added by goodphptutorials, on 31/12/2008 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 report
category icon

Controllers: Programming Application Logic [PDF]

in PHP added by nirajam, on 31/12/2008 cakephp open source

This tutorial teaches the fundamentals of CakePHP controller. *This is a PDF File, might take some time to load*

comment save report
category icon

The adventure of PHP and the magic quotes

in PHP added by goodphptutorials, on 19/12/2008 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 report
category icon

Five common PHP design patterns

in PHP added by goodphptutorials, on 16/12/2008 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 report
category icon

Towards RESTful PHP - 5 Basic Tips

in PHP added by goodphptutorials, on 11/12/2008 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 report
category icon

Introduction to SQL Injection

in PHP added by iDemonix, on 8/12/2008 beginner tutorials database injection mysql security sql

In this tutorial we look at the issue of SQL injection, how the attackers use it, the problems that can arise and methods of prevention using PHP.

comment save report
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

Freezing 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 report
category icon

Building 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 report
category icon

Building 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 report
category icon

Cross-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 report
category icon

How 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 report
category icon

Create 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 report
category icon

How 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
category icon

PHP Doctrine DQL recipes

in PHP added by prodevtips, on 31/10/2008 advanced tutorials oo programming php5

A list of examples using DQL and PHP Doctrine instead of SQL.

comment save report