Before the PHP code starts, add the following lines: These two lines set script-wide variables that will allow the errors in your current script to output to screen.
Display Time Left To a Date
A PHP function to display the time between now and a future date supplied as Unix time, in human readable format, using two blocks of time periods (year, month, week, day, hour or minute.)
Foul language filter in PHP
You will learn how to create a simple PHP foul language filter function which uses a file containing foul words to replace them in the string of your choice with asterisks.
Creating friendly URLs with mod_rewrite
This programming tutorial will teach you how to build search engine friendly URLs in PHP, which contain keywords and use HTML extensions. We are going to use the htaccess file and mod_rewrite module running on an Apache server.
Alternating row colors
Alternating row colors is a very good way to make big tables more ergonomic and esthetic. Script and explanation here. Also explains the modulus operator.
Log visitors with PHP & MySQL
In this tutorial you’ll see how you can track your website’s visitors and getting information such as user-agent or referrer. Also, we’ll be using reverse DNS to find out more interesting information about his IP.
PHP and Javascript: Dynamic update with MySQL
This tutorial shows you how to create a Web page that extracts information from a MySQL database without refreshing the page (dynamic update). Javascript and PHP knowledge is required
How to read XML using PHP DOM
This tutorial will demonstrate the use of DOM extension in PHP to read contents of a XML file. This tutorial is for PHP starters as well as for those who are using XML parser functions to read/write XML files. This tutorial will not go into details on XML. The focus will be more on the […]
Creating a UPS Shipping Calculator
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type. A sample form will be created that will post information to a UPS page. The PHP script will then retrieve and display the shipping cost.
How to create an AJAX contact form
This tutorial shows users how to create an AJAX contact form. The form method in this tutorial is set to POST.