Image Rotation

September 8th, 2006 by PreZ

I found this really cool way to rotate images on my blog (my pic on the right) and I thought I’d share it with all of you.

Instructions

To start using the Rotator, just follow the steps below.

Check the Requirements

In order to use the Rotator, your site must be hosted on a server that supports PHP (version 4.2 or newer). If you’re unsure, it’s best to ask your hosting provider if they have PHP before you move ahead.

Download the Source

Download the latest version of the script and unzip the file (it should decompress into a file named rotator.php).

Upload the Script

To start using the Rotator, just upload the script to your server using your favorite FTP program. Put the script in the same folder as the images you would like for it to rotate.

Note: If you’ll be placing the script in another folder, you’ll need to modify the $folder setting in the configuration section before you upload (read the Instructions section in the script for more information).

Test It

The easiest way to test if the script is working is to open it in a web browser. Just enter the path to the script in your browser’s Address field, for example:

http://example.com/images/rotate.php

Be sure to replace example.com with your own website, and replace images with the web-accessible path to your image folder. Each time you reload the page, you should see the image change.

Link It

You can now link to the file as you would any normal image, like this:

< **img **src="http://example.com/rotate.php"**> Remove the **'s

Each time you reload your webpage, the image will change.

By Automatic Labs


57 views
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Recommended

  1. One Response to “Image Rotation”

  2. server hosting

    By Mike on Apr 12, 2007

Post a Comment