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

goodphptutorials has submitted 407 links

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

The Truth about Sessions

in PHP added by goodphptutorials, on 22/10/2008 advanced tutorials security session

Nearly every PHP application uses sessions. This article takes a detailed look at implementing a secure session management mechanism with PHP. Following a fundamental introduction to HTTP, the challenge of maintaining state, and the basic operation of cookies, I will step through simple and effective methods that can be used to increase the security and reliability of your stateful PHP applications.

comment save report
category icon

Integrated PHP and Flex development with Zend Studio and Flex Builder

in PHP added by goodphptutorials, on 30/10/2008 adobe flex advanced tutorials zend studio

As rich Internet applications (RIAs) built with Adobe Flex become more widely adopted, there is a growing demand for applications that can combine the user interface (UI), media, and client-side benefits of Flex with the power and versatility of a server-side language like PHP. Tight integration between Flex and a server-side language means that your users will have an intuitive, engaging user experience with all the functionality they need. For developers, tight integration between PHP and the Flex development environments can provide big benefits by ensuring a smoother workflow for coding, debugging, and managing a project. You can make the most of such a unified environment by using Adobe Flex Builder and Zend Studio for Eclipse together.

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

How To Use cURL (in PHP) For Authentication And SSL Communication

in PHP added by goodphptutorials, on 29/9/2008 advanced tutorials curl ssl

Using cURL (in PHP) to access https url is often not as simple as using the proper url. Using it for authentication is also not very clearly documented. This is a mini tutorial for both accessing https url's as well as for http authentication.

comment save report
category icon

FirePHP and Zend Framework 1.6

in PHP added by goodphptutorials, on 12/9/2008 Zend debug firebug firephp php5

Christoph Dorn has released an interesting tutorial titled FirePHP and Zend Framework 1.6 over on his blog. In it (as you can most likely deduce from the title) he gives a quick rundown on how to get up and running with the new FireBug/FirePHP integration that comes with Zend Framework 1.6.

comment save report
category icon

Build a Featured Posts Section for WordPress

in PHP added by goodphptutorials, on 12/8/2008 CMS wordpress

WordPress is awesome. Even more awesome is the fact that it can be customized to power any type of site you like! Here, we'll be learning how to create a featured and "latest posts" section - easily a 'must-have' for all good News/Magazine themes. We'll also go over using the 'Custom Fields' to their fullest potential.

comment save report
category icon

Submit A Form Without Page Refresh using jQuery

in PHP added by goodphptutorials, on 30/7/2008 AJAX JavaScript jquery

Previously on NETTUTS, Philo showed how you can use jQuery to add form validation to wordpress comments that works without any page reload. Another great way of utlizing jQuery to enhance user experience is to not just validate, but to submit your form entirely without a page refresh. In this tutorial I'll show you how easy it is to do just that -- submit a contact form that sends an email, without page refresh using jQuery! (The actual email is sent with a php script that processes in the background). Let's get started.

comment save report
category icon

PHP framework comparison benchmarks

in PHP added by goodphptutorials, on 3/7/2008 benchmark framework

The tests were run on a 1.8Ghz AMD sempron computer with 512Mb RAM running Ubuntu Gutsy (7.10) Desktop.

comment save report
category icon

Exceptions, you're doing it wrong

in PHP added by goodphptutorials, on 23/5/2008 advanced tutorials exceptions framework

Once again a post aimed at the PHP community, not so much of a rant but more of something I’ve seen done horribly wrong in a lot of PHP code recently

comment save report
category icon

Smarty Template Engine Crash Course

in PHP added by goodphptutorials, on 22/5/2008 beginner tutorials smarty template

For those of you who have used PHP template engines, the basic concepts of Smarty should look quite familiar. In your PHP application you assign variables for use in the template, then you display it.

comment save report
category icon

Easy Ajax in symfony

in PHP added by goodphptutorials, on 7/5/2008 AJAX framework symfony

Symfony has Ajax helpers that make programming an elaborate interface a piece of cake. This tutorial will show you step-by-step how to create an Ajax-powered symfony application in minutes.

comment save report
category icon

Build a customizable RSS feed aggregator in PHP

in PHP added by goodphptutorials, on 24/4/2008 advanced tutorials rss web service xml

Although there are several commercially available feed aggregators, it's easy to develop your own feed aggregator, which you can integrate with your Web applications. You'll appreciate this article's fully functional PHP code snippets, demonstrating the use of PHP-based server-side functions to develop a customizable RSS feed aggregator. In addition, you'll reap instant benefits from using the fully functional RSS feed aggregator code, which you can download from this article.

comment save report
category icon

Casual cryptography for web developers

in PHP added by goodphptutorials, on 27/2/2008 cryptography intermediate password

Cryptography is for most web developers like a vast and endless ocean of intimidating un-absorb-able information. Which is sad, since cryptography is so useful and in many situations absolutely necessary. I will not even try to explain why, since I consider developers that don't care about the security, and integrity of their end users a lost case.

comment save report
category icon

Install Apache Web Server on Windows Vista [flash video]

in PHP added by goodphptutorials, on 23/1/2008 apache beginner tutorials installation

A quick flash video showing how to install Apache on Windows Vista.

comment save report
category icon

Introduction to Debugging and Error Checking

in PHP added by goodphptutorials, on 22/1/2008 debugging error-checking intermediate

This article will introduce you to some basic concepts such as error checking and built-in functions like var_dump() that will aid you in tracking down errors in your PHP applications. There are also many fully-fledged debugging tools for PHP that lets you set breakpoints, watch variables, and such like, but we won't be using them in this article

comment save report
category icon

Easy as Pie - Working with a Database

in PHP added by goodphptutorials, on 20/1/2008 beginner tutorials database mysql

This post is the third in a continuing series of DIY tutorials, which aims to make things as simple as possible. The [Easy as Pie] series focuses on tasks that most people consider too challenging and presents it in a way that is easy (as pie!) to understand.

comment save report
category icon

LAMP performance for dummies

in PHP added by goodphptutorials, on 15/1/2008 advanced tutorials blog caching database mysql performance

I've spent the last six months combing Google for 'slow mysql' results. It was enlightening. Now in the spirit of giving back to the community I give you:

comment save report