Hi there,
I want to be able to call am image using a php script (so, <img src="random.php">).. but as you see, it has to be random. I dont have access to GD (its a windows box, plus all the GD dlls ive tried just gave me errors).
Basically I just need it to read from a file, a random image name and use it. This is what I've come up with so far:
hehe. Ive tried doing some stuff, but the headers always get sent before the image one.. so it doesnt work can you help?
thanks ^_^
I want to be able to call am image using a php script (so, <img src="random.php">).. but as you see, it has to be random. I dont have access to GD (its a windows box, plus all the GD dlls ive tried just gave me errors).
Basically I just need it to read from a file, a random image name and use it. This is what I've come up with so far:
Code:
<? header("Content-type: image/gif"); passthru("type //gota be random here//"); ?>
thanks ^_^
Comment