This means, that your webserver will change all requests to http://mydomain.com/image.png to http://mydomain.com/image.php. This is needed, because IPB only handles image file types in signatures. You could also choose .jpg or .gif.
Save this file as .htaccess.
Next one. Create a new file and put this in it:
Code:
<?php
foreach (glob("*.png") as $filename) {
$img[] = $filename;
}
Explanation: $img is an array of image file names which is located in the current directory. Upload as many files as you wish. The only important point: the filetype has to match the given value.
The next line has to be changed, according to your images. If you prefer jpg, use this:
Code:
header("Content-Type: image/jpg");
The system should be clear.
Save this file as image.php.
Now load both files into a directory of your choice on your webserver. Copy as many image files of your preferred type into the same directory.
After you finished, change your signature to something like this:
Code:
http://mydomain.com/directory/image.png
And voila... you should have a beautifuly rotating signature.
Saving traffic
In order to use external URLs for your images, just use this code in your image.php:
If you want the easier method, I could also provide the files, so the only thing you have to do would be to upload them to your webspace and adding images.
Patriot is right here. As this is a server-side PHP script, you have to refresh the page. Reload the picture without refreshing the page would require JavaScript, which isn't possible for this purpose.
' Wrote:Patriot is right here. As this is a server-side PHP script, you have to refresh the page. Reload the picture without refreshing the page would require JavaScript, which isn't possible for this purpose.
oh i know that. i mean something else.... When you refresh it will it always change to the next one... In that site you mention it does not do it every time i refresh the page.
To all others: I could provide you a subdomain on one of my servers, where you can store up to 10MB of pictures and access them via the random signature script.
Additionaly I could offer you to set up the system so that all you have to do is upload your pictures...
I would demand a reasonable amount of virtual money for this service.