Helping ordinary people create extraordinary websites!
$1 CPM Advertising For A Limited Time Only
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:
PHP Tutorials

PHP Tutorials are a great way to learn more coding strategies and principles of PHP. Below is our collection of PHP articles and tutorials where you should be able to find the PHP tutorial to suit your need. We have also included here some links to important areas of PHP development to help you with your coding. Also visit our PHP Scripts section for ready to use solutions to your application's needs.

» A Simple PHP Tutorial
New to PHP? Get started with this tutorial.
» PHP Syntax
Learn the basic syntax of the PHP language.
» PHP Functions
Learn some commonly uses PHP functions.
» PHP Security
Learn to secure you PHP applications.
» PHP Cookies
Learn how to use cookies with PHP
» PHP Expressions
Learn how to manipulate PHP Expressions.

Zend Framework Tutorial
By Lyndon Baptiste

I find myself constantly bombarded with questions from students and co-workers I've introduced to the Zend Framework regarding how the different components can come together to form a basic application. I've searched, I have found, I have emailed great tutorials, but still the most common questions are posed "What's should I include in index.php?", "Should I use Zend_Db_Table?", "And what about Zend_Form?"
Wednesday, 13th August 2008



Port Scanning and Service Status Checking in PHP
By Akash Mehta

While building web applications, it's often important to keep an eye on the other services running on your server. Having access to the current status of public servers can empower your applications to make decisions and respond to problems automatically. Acknowledging a service is offline can also save endless support emails. In this tutorial, I'll show you how to keep track of your server status by scanning ports on your server with PHP.
Friday, 6th June 2008



Web Database Access from Desktop Applications
By Michael J. Ross

There may be growing interest in moving computer applications from the desktop to the Web. But desktop applications are still a huge market, whose demise has been prematurely reported by the media in the past, and will most likely be reported in the future. In addition, for many domain areas, a Web browser — even for an AJAX-powered site — will be insufficient for many application needs.
Tuesday, 6th May 2008



CubeCart 3.0 Installation and Configuration
By Michael J. Ross

In this tutorial, we will get an introduction to CubeCart, created and distributed by Devellion Limited. Their flagship product is one of the easiest low-cost e-commerce solutions available, and is growing in popularity. Note that CubeCart is not technically open source, since the code cannot be freely redistributed. On the other hand, most of the code is not protected using encoding, and can thus be read and understood.
Monday, 7th April 2008



PHP Site Search Made Easy
By Akash Mehta

When users want to find information on your website, they first look for a search box. Failing that, they head back to Google - potentially finding a competing site and taking their business elsewhere, or simply becoming frustrated with your service. But implementing effective search doesn't have to be hard. In this tutorial, I'll show you how to build a basic site-specific web search in just five lines of code, using the Yahoo! APIs.
Sunday, 30th March 2008



Installing and Configuring Drupal 6.1
By Michael J. Ross

One of the most popular CMSs is Drupal, partly because it offers all of the aforesaid features, and partly because developers familiar with PHP (the language used by Drupal) can modify the functioning and appearance of almost every aspect of Drupal. The latest series of Drupal, version 6.x, provides improvements and brand-new features in a variety of areas: installation, administration, human language support, theme management, security, performance, and more.
Monday, 24th March 2008



Desktop Application Development with PHP-GTK
By Akash Mehta

PHP-GTK 2 is out, and with it, a fantastic means for PHP developers to build useful, reliable cross-platform desktop applications. In this tutorial, I'll show you how to get up and running with PHP-GTK in no time and build your first desktop application.
Thursday, 13th March 2008



Installing PHP on Windows
By Michael J. Ross

A brochure-style Web site may be sufficient for a business that simply wants a basic Web presence — some static pages to inform the visitor of the company's off-line contact information. But most organizations want a Web site that can interact with the visitor, delivering custom content in dynamically-generated pages, and storing visitor information in a database.
Wednesday, 5th March 2008



Easy PDF Generation in PHP
By Akash Mehta

PDF is a popular, versatile format for storing content. PDF files can be generated once, and distributed in peace knowing that they will look the same across all platforms. They also serve as a perfect way of allowing your users to download or email a page from your website. In this tutorial, I'll show you how to generate PDF files in pure PHP and distribute your content in a single, consistent format.
Saturday, 1st March 2008



Rapid Application Development with CodeIgniter
By Akash Mehta

When it comes to PHP, there are a lot of options for frameworks. Some focus on simplifying your application code, while others improve your application portability, and others still simply help you code quicker. Today I'll introduce you to CodeIgniter, a framework that does all three. CodeIgniter is an MVC application framework for PHP that gives you a consistent structure for your application, takes care of common tasks and helps you implement complex functionality with minimal effort.
Sunday, 17th February 2008



Practical PHP Performance
By Akash Mehta

When it comes to building web applications in PHP, performance isn't typically a major concern. Features, usability and any business concerns are considered a greater priority, as they can be better demonstrated and visualised. Performance graphs don't make the boss's day. So, why should you as a PHP developer, worry about performance? Quite a few reasons, in fact...
Wednesday, 13th February 2008



Building Desktop Applications in PHP
By Akash Mehta

So, you’re a hotshot PHP developer. You’ve written a lot of code powering some pretty cool websites; maybe you’ve even written some public / open source scripts that other developers are using. You’ve been through it all with the web, from basic database hacks to battling with inconsistent browser rendering, and now you want to have a go at something different.
Saturday, 9th February 2008



The Zend Framework, Dependency Injection and Zend_Di
By Pádraic Brady

A while ago I wrote this neat little subclass of Zend_Loader to add a midgen of Dependency Injection to the Zend Framework application I was then building. After emailing the lists to propose it be fully adopted into Zend_Loader some time ago, I realised someone had proposed a novel new component called Zend_Di, and that small change was since accepted by Federico into his DI buster. This is a quick overview with very simple use cases.
Thursday, 7th February 2008



PHP Debugging with Zend Studio
By Michael J. Ross

In this tutorial, we will explore how to use the latest update of Zend Studio for debugging PHP scripts. But first, we will get an overview of the product, its various editions, the system requirements for running it, and other installation considerations.
Sunday, 3rd February 2008



Effective Geotargeting with PHP
By Akash Mehta

In this tutorial, we’ll take a look at the technique of geotargeting, or serving content to users based on their physical location. The technology is invaluable; with simple techniques, you can target advertising to specific users, collect more accurate usage statistics, serve content in different languages for different regions and provide local information like weather reports to your visitors.
Sunday, 27th January 2008



Simple System Maintenance with PHP-CLI
By Akash Mehta

Web development is a world of rapid code modifications, instant deployment and immediate updates. Of course, maintaining the product of this web development can be as hectic as the web development is agile; with manual backups, quick database edits and tedious data migration and re-entry. In this tutorial, I'll show you how to use PHP-CLI, the command line interface for PHP, to get your maintenance under control using the technologies you're already familiar with. By the time you've finished this tutorial, you'll be able to build human-assisted backup systems, automatic report generators.
Monday, 21st January 2008



Floating Point Comparisons In PHP and Javascript
By Justin Laing

Here’s the problem. Say you’re comparing two floating point numbers a (71.00) and b (71.00) to see if they are the same. The problem is if you’ve done any calculations to arrive at these numbers they might actually be stored as 71.00000000001. Now if one of them is stored that way and the other isn’t and you compare the two to see if they are equal you’ll get a FALSE as the response, even though they should be the same.
Tuesday, 8th January 2008



Create a Facebook Application With PHP
By Justin Laing

This tutorial covers the basics of using the Facebook PHP Client Library and how to get your application started, including, installing the Facebook Developer Application, downloading the Facebook PHP Client Library, create your application, a hello Facebook! example, FBML - Facebook Markup Language and using the Facebook API.
Monday, 7th January 2008



Scraping Links With PHP
By Justin Laing

In this tutorial you will learn how to build a php script that scrapes links from any web page, some things that can be created via scraping links and the legal issues associated with scraping content.
Sunday, 6th January 2008



Upload Files to MySQL using PHP Tutorial
By Tim

I much prefer to upload files to mysql instead of saving them directly to the file system. I can run database backups/mirrors that are much easier to manage then if files were placed on the file system. Here are the simple scripts I use to upload files and a script to stream the file back to the browser.
Thursday, 22nd November 2007



Introduction to PHP Programming
By PHP Catalyst

PHP stands for 'Hypertext Preprocessor' which is actually a recursive acronym. It is an open source and most widely used scripting language for the web. In another words, PHP is a server side scripting language and can be embedded into HTML code which is parsed and processed when the page is requested.
Monday, 19th November 2007



PHP and MySql with PayPal
By Neill Tyler

This tutorial shows how to take use dynamic PHP/MySQL content with PayPal. This is my firsts GoLive tutorial so please let me know how to improve things. I'm also open to any suggestions for more tutorials.
Friday, 16th November 2007



Writing PHP
By Neil Williams

System functions available within PHP include creating, opening, reading from, writing to and closing files on the server, executing system commands, create directories and modify file permissions in pre-determined directories. PHP can receive and process data from forms, save data to files, send by email and output a response to the browser.
Sunday, 11th November 2007



Using MySQL and PHP
By Neil Williams

This section deals mainly with exploring the possibilities of combining PHP and MySQL. To check if PHP is setup to use MySQL on your server, look for a section on MySQL in the phpinfo file described earlier. The technical details of setting up MySQL on your system are covered comprehensively in various text books. See the "Source Code Books" link below for more information.
Saturday, 10th November 2007



Inserting An Array Into A Database
By Brandon Cash

A few days ago, a user came into #phphelp on UnderNet wanting to know how to insert an array into a database. A simple enough concept, but how exactly does one look up information on the subject?
Thursday, 1st February 2007



Ask A Question
characters left.