Isnt this very simple? When i did it, it was like one paragraph of PHP and that was it. All i did was use a header redirect.
You definitely dont need to use GD for something like this.
This was when i was a bit more novice at PHP and used IF constantly. Obviously it will work fine as it is but doing a SWITCH would be more efficient.
In which case, the complete efficient code is: Code:
<?php
$randomN=rand(0,4);
switch ($randomN) {
case 0:
header( 'Location: http://www.example.com/images/SIG1.png' ) ;
break;
case 1:
header( 'Location: http://www.example.com/images/SIG2.png' ) ;
break;
case 2:
header( 'Location: http://www.example.com/images/SIG3.png' ) ;
break;
case 3:
header( 'Location: http://www.example.com/images/SIG4.png' ) ;
break;
case 4:
header( 'Location: http://www.example.com/images/SIG5.png' ) ;
break;
default:
header( 'Location: http://www.example.com/images/error.png' ) ;
}
?>
All you need to do is upload that (.php) and change the links to your images. Thats it. Then use IMG tags to point to the .php file.