Tagged: PHP

PHP: Secure Form Mailing

CGI forms have been notorious for abuse by spammers. The most used one of all is the famous formmail.cgi script. Most people have either moved on to other more secure scripts or turned to PHP for emailing their forms. That’s...

MySQL Databases Part II

Okay I was probably a bit brief before with databases and so I thought I’d expand a little before I go any further. A database is the main object. This holds it all together. You can have many databases in...

Learn PHP : MySQL Databases

Whilst there’s plenty more I could go into with regards to PHP I realise that most people want to use PHP to access a database, store information, run a site off one page etc. So I figured that the easiest...

The PHP for() loop

And another loop for you to try is the for() loop. This repeats for a specified number of times. $num = 10 for ($i=0; $i < $num; $i++) { print $num; print “<br />”; } This will print out the...

The PHP while() loop

The simplest loop is the while loop. Simple format and repeats while the condition is true. [source:php]$num = 0; while ($num < 10) { print $num; $num++; } [/source] This of course would print the numbers from 0 to 9...

Including Files : Advanced

Before I touched on one of the most useful basic benefit of using PHP and that was removing code that is repeated in a web site, placing it in its own file and just including it into your page using...