The problem is this. I generate a file name using a random number generator and this works find. Using echo the name of the file comes up just fine. But when I attempt to use that to call an image all I get is a blank image space.
The code is as follows
$random = (rand()%6);
if ($random==0) $random=1;
$imagestring= “die-” . getdice();
$newstring=$imagestring . “.gif”;
The variable newstring is the file name. and if you go to the page you will see the file name is just fine. But the image does not come up. The images are in the same directory as the php page.
Thanks for help with this