Soldato
hey all,
can't get a sig rotation working for some reason.
i've made a www.projectTTA.com/sigs directory on my server where i've got a rotate.php script, then i've got www.projectTTA.com/sigs/sigs where i've got all the actual images kept.
but when i put [*img]www.projectTTA.com/rotate.php[/*img] (minus the asterix) it doesn't work.
two scripts i've tried for the php file are as follows
thats from http://robm.me.uk/articles/image-rotation-in-php/
and i've tried the code from the sticky in General Discusion
anyone got any clues as to whats i'm doing wrong?
edit:
the two sigs i'm trying to rotate are at:
http://www.projecttta.com/sigs/sigs/1.jpg
http://www.projecttta.com/sigs/sigs/2.jpg
and both are actually there
can't get a sig rotation working for some reason.
i've made a www.projectTTA.com/sigs directory on my server where i've got a rotate.php script, then i've got www.projectTTA.com/sigs/sigs where i've got all the actual images kept.
but when i put [*img]www.projectTTA.com/rotate.php[/*img] (minus the asterix) it doesn't work.
two scripts i've tried for the php file are as follows
Code:
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
readfile($files[array_rand($files)]);
?>
and i've tried the code from the sticky in General Discusion
Code:
<?
$array[200];
$elem = 0;
$dirname = "sigs";
$dh = opendir($dirname);
while ($file = readdir($dh)) {
if (!is_dir("$dirname/$file"))
$array[$elem] = $file;
$elem = $elem + 1;
}
srand((double)microtime() * 10000000);
$rand_keys = array_rand($array);
$temp = $array[$rand_keys];
header("Location: $dirname/$temp");
?>
anyone got any clues as to whats i'm doing wrong?
edit:
the two sigs i'm trying to rotate are at:
http://www.projecttta.com/sigs/sigs/1.jpg
http://www.projecttta.com/sigs/sigs/2.jpg
and both are actually there