d2jsp
Log InRegister
d2jsp Forums > d2jsp > General Help > Sig Rotation Guide > By Samuray
Closed New Topic
Member
Posts: 27,489
Joined: Feb 12 2006
Gold: 12,300.01
Dec 12 2011 04:51pm
Hello and welcome to my sig rotation guide


Before we start you should have a webserver which can handle .php
To get such a server you have to google for a free php webspace.

After you found one do the following:

Create a new text file and call it index.php
Copy the following code into this file:
Code

<?php Header("Content-Type: image/gif");
$sigarray=array();
if ($handle = opendir("./")) {
 while (false !== ($file = readdir($handle))) {
 if(stristr($file, ".gif") or stristr($file, ".jpg") or stristr($file, ".png")){
 array_push($sigarray,$file);} } }
closedir($handle);
shuffle($sigarray);
readfile(end($sigarray));?>


Safe the file and close it

Now go on your webspace and create a new folder called sig.png
Put the index.php file and all your pics you want in your rotation into this folder

After you've done this copy the following link into your signature:
Code
[img]http://YOURDOMAIN.com/sig.png[/img]


If you have any questions feel free to pm me
Go Back To General Help Topic List
Closed New Topic