PHP Tutorials Articles

Learn more about using PHP for web application development. Articles in this category will be geared towards teaching you new things you may not already now about PHP and how to get the most out of its features.

FFmpeg Video Upload Conversion

FFmpeg is a command line tool used to convert video files between different formats. When it comes to implementing FFmpeg with your PHP scripts there is no super easy straight forward way to do so. This multi-page article will guide you through a complete example of how I incorporated FFmpeg within one of my sites to allow me to upload and convert videos into mp4 files encoded with h.264.

Basic PHP Form Processing

Have you been learning how to create and design web pages? You can create lists, tables, images and forms and make them look good with CSS. Do you wonder "what can I do with these forms?" Without some server-side program to handle the form processing, you are left with the option of setting the action to "mailto:someaddress@somehost.com" .

This tutorial will show how to create a generic form processor that will use PHP's mail() function to send the data submitted in the form in a more nicely formated manner to an email address you specify. This will help keep your email address away from 'bots' and allow you some limited error checking.

Introduction to Smarty

There are many benefits to incorporating a template engine into your applications. Foremost is the seperation of "application logic" from "application presentation", enabling the separation of tasks between software developer and web-page designer in projects, keeping PHP code and HTML separate.

This article will guide you through an implementation and demonstration of using the Smarty Template Engine. The goal of this article is to give you a foundation of knowledge that will allow you to start implementing Smarty in your projects. If you are interested in learning more, please read along.

Restricted Users Areas with PHP

This article will show you how to create a user authentication and restriction system using PHP and MySQL. It will guide you through the entire process of creating a user registration and authentication system. This system will be easy to use and include in your websites pages, allowing you to restrict access to pages by including just a couple of lines at the begining on any page.

If you want to learn how to register users to your site and restrict the content of certain pages, or are just curious to see another way to carry it out, read along and enjoy the story!