PHP Tutorials
Adding Custom Text to an Image Using PHP
This little script will show you how to add a custom text to an image loaded onto your page.
Monday, 7th November 2005
This little script will show you how to add a custom text to an image loaded onto your page.
Monday, 7th November 2005
Working with PHP Datatypes
For those who have not noticed, this entire site has been constructed from the incredibly powerful PHP server-side programming language. PHP is based heavily upon C++, so all you C++ programmers out there will pick up PHP very easily. What's the difference then? While C++ was designed to be a computer programming language for .
Thursday, 3rd November 2005
For those who have not noticed, this entire site has been constructed from the incredibly powerful PHP server-side programming language. PHP is based heavily upon C++, so all you C++ programmers out there will pick up PHP very easily. What's the difference then? While C++ was designed to be a computer programming language for .
Thursday, 3rd November 2005
Checking Form Field Integrity within PHP
In my first PHP mail article, we looked at how to write a simple PHP mail script, using only a couple lines of code, but we never addressed the issue of required field elements. Incorporating requirements in your form can effectively yield your form tamper proof against mischivous users who send blank e-mails.
Thursday, 3rd November 2005
In my first PHP mail article, we looked at how to write a simple PHP mail script, using only a couple lines of code, but we never addressed the issue of required field elements. Incorporating requirements in your form can effectively yield your form tamper proof against mischivous users who send blank e-mails.
Thursday, 3rd November 2005
Protecting your PHP and HTML Source Code
There are many reasons now as a web designer, software programmer or website owner that you may want to start considering the safety of your HTML or PHP source code. Some related reasons are...
Wednesday, 2nd November 2005
There are many reasons now as a web designer, software programmer or website owner that you may want to start considering the safety of your HTML or PHP source code. Some related reasons are...
Wednesday, 2nd November 2005
Calculating Difference Between Two Dates Using PHP
Suppose you want to know the age of a person given her birth date. Let’s say her birth date is "09-23-1969". Although in this case you might say that we don’t need a program to compute the age, but assuming there are 1000s of records in your database...
Wednesday, 26th October 2005
Suppose you want to know the age of a person given her birth date. Let’s say her birth date is "09-23-1969". Although in this case you might say that we don’t need a program to compute the age, but assuming there are 1000s of records in your database...
Wednesday, 26th October 2005
Simplest PHP Site Search-engine Using Unix Grep
You can build the simplest possible search-engine (with no database) for your site with PHP by simply using Unix's grep command on your Linux server instead of writing a lot of PHP code from scratch.
Tuesday, 18th October 2005
You can build the simplest possible search-engine (with no database) for your site with PHP by simply using Unix's grep command on your Linux server instead of writing a lot of PHP code from scratch.
Tuesday, 18th October 2005
Creating a PHP Script Timer
This timer is the simplest and easiest to implement. It will determine the time taken for a php script to execute correct to 0.000000000000001 seconds.
Tuesday, 18th October 2005
This timer is the simplest and easiest to implement. It will determine the time taken for a php script to execute correct to 0.000000000000001 seconds.
Tuesday, 18th October 2005
PHP Image Verification Tutorial
Ever logged onto Yahoo! or here on Planet Source Code and have run across the verification image containing numbers and leters that you must plug into a form for verification? Learn to do it.
Monday, 12th September 2005
Ever logged onto Yahoo! or here on Planet Source Code and have run across the verification image containing numbers and leters that you must plug into a form for verification? Learn to do it.
Monday, 12th September 2005
Dealing with cannot modify header errors
Ever have that problem when you goto set a cookie, or start a session, or even do a redirect and you get the error "Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/eric/www/test.php:2) in /home/eric/www/test.php on line 3"? Well, I know I have, and I know this is kinda confusing when you're first starting out in the lanuage. So let's begin by explaining what this is telling us.
Tuesday, 6th September 2005
Ever have that problem when you goto set a cookie, or start a session, or even do a redirect and you get the error "Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/eric/www/test.php:2) in /home/eric/www/test.php on line 3"? Well, I know I have, and I know this is kinda confusing when you're first starting out in the lanuage. So let's begin by explaining what this is telling us.
Tuesday, 6th September 2005
A Shopping Cart Class in PHP
Classes have eluded me (rather I have eluded them) since the beginning of my primitive programming days (remember Turbo C++?). They have always hovered over the horizons. This hasn't nagged me much, for I've been managing without classes pretty well, but sooner or later I had to come in contact with them. So in the morning (and I hadn't slept the entire night) I executed a gut-wrenching plunge into the depths of classes, and the shopping cart class was the first thing I wrote. Here's the class...
Thursday, 18th August 2005
Classes have eluded me (rather I have eluded them) since the beginning of my primitive programming days (remember Turbo C++?). They have always hovered over the horizons. This hasn't nagged me much, for I've been managing without classes pretty well, but sooner or later I had to come in contact with them. So in the morning (and I hadn't slept the entire night) I executed a gut-wrenching plunge into the depths of classes, and the shopping cart class was the first thing I wrote. Here's the class...
Thursday, 18th August 2005
