Home :: About Us :: Guidelines

PHP Tutorials Category

Page 1 of 212

Automating a WordPress Copyright Notice

Sunday, January 1st, 2012

Automating the copyright notice on a web site with a dynamic date is easy to do with PHP. We do this on every site that we develop, including WordPress sites. (more…)

A Simple Image Viewer Using PHP

Wednesday, August 24th, 2011

We recently picked up a client whose web designers stored hundreds of images on her web server. The client is not tech-savvy and wanted to find a way to view the images on her server. (more…)

Converting HTML Pages to Run PHP

Thursday, April 21st, 2011

This issue frequently arises when site owners want to convert legacy .htm or .html pages to run PHP, but they do not want to change the file name extensions due to the potential loss of rank positions when the URLs are changed. It is easy to convert HTML pages to run PHP if you know how and you can change those static pages to run dynamic PHP code. (more…)

Beware of Free WordPress Themes

Wednesday, June 16th, 2010

If you run one or more WordPress blogs, you might be tempted to use some of the thousands of free WordPress themes available on the web. Be aware that some may contain malicious code or links embedded in encoded sections of PHP code that may be detrimental to your web site. (more…)

Lots of Deprecated Features in PHP 5.3 Will Break Web Sites

Wednesday, November 11th, 2009

Many older sites written in PHP as well as many newer sites that evolved from older legacy code will find their sites broken when their servers are upgraded to PHP 5.3. That’s because many older PHP functions and INI directives are now formally deprecated (made obsolete) in version 5.3.
(more…)

Using PHP to Display Directory Contents With a Select List

Saturday, February 28th, 2009

Sometimes there is a need to display the list of files in the directory and allow a user to select a file name from the list. We run into this most often when a user must be able to select an image or a document to be downloaded or displayed after being selected. Here is a very simple PHP script that will display the content of a web site directory using an HTML select list.
(more…)

A PHP Date Select Box Routine With Date Validation

Wednesday, January 21st, 2009

Sometimes you need to use a drop-down select box routine to allow users to select a date that you can easily save in a MySQL database. Here is one way to generate date boxes using PHP. The code also includes a JavaScript date validation function that prevent users from selecting an invalid date. The function also handles leap year situations.
(more…)

3D Movie Technology for DVD and Blu-Ray

Monday, November 10th, 2008

3D movies have recently seen a resurgence in the movie theater. Due to new 3D theater technologies, several 3D version of movies have hit the theaters and a few of those have made it to home theater formats in both standard DVD and Blu-ray.
(more…)

Using the MySQL LIMIT Clause for Paging with PHP

Thursday, October 16th, 2008

One of the first questions that comes up when someone starts using PHP and the very powerful MySQL database is: How do I page through the results of a query like I see with search results on many web sites? This is pretty easy to accomplish if you know how to use the MySQL LIMIT clause.
(more…)

Creating a States Table in MySQL

Monday, June 2nd, 2008

It is common to add a drop-down select box that is populated with USA states or Canadian provinces to PHP applications. There are basically three ways to do this. You can hard-code all of the Select box selections into your application, you can add the states to a MySQL database manually, or you can use the handy code on this page to create a States table in MySQL in just a few seconds. (more…)

Page 1 of 212