that's a lot of code tbh you would be better off withOriginally Posted by MysticMentalist
div.head{
<?php $bgi=rand(1, 10);
echo "background-image: url('/header/h".$bgi.".gif');";
?>}
be processed in about the 24th of the time
and tbh using the GD module for a random image is pointless as hell, every web browser i've seen has the ability to grab the image tag out of the images raw data to know the type
and anyway just use an apache conf file and throw the php into a file with an image ext so it's forum and xhtml safe