Categories

Manual Installation Tutorial for PHP 5 on IIS 5.1 (Windows XP Pro)

Before we begin any installation steps, the first thing we will need to do is download the PHP zip file from PHP. The version available at the time of this publishing is 5.1.4. The first step is to extract all of the files from the downloaded zip file into C:PHP (create the folder if it doesnt already exist). You may choose a different location, although it is not [...]

Benefits of PHP Programming

PHP (Hypertext Pre-Processor) language is recognized as one of the fastest growing web programming languages on the web industry as well as on the software development today. PHP has the strong execution utility coupled with its understandable coding syntax, thus it becomes the excellent choice for software developers to deliver rapid application development [...]

Optimizing your php code

1. If a method can be static, declare it static. Speed improvement is by a factor of 4.

2. echo is faster than print.

3. Use echo’s multiple parameters instead of string concatenation.

4. Set the maxvalue for your for-loops before and not in the loop.

5. Unset your variables to free memory, especially large arrays.

6. Avoid magic like [...]

Random image example

This is a simple random image script which is ideal for displaying basic images from a text file . In future examples we will expand on this and build some simple banner rotation systems.

The first step that you need to do is to create your file for storing your images and then insert the names [...]