Ok check this out for a sec...
I've got 2 images, "image1.jpg" & "image2.jpg" now say I want them to rotate by use of a php script.
I have this worked up to rotate them in a php script, renamed to "image.gif" so it can be called from http://site.com/image.gif 
code:
<?php
$dh = opendir(".");
while (false !== ($file = readdir($dh))) 
{
  if (preg_match('/\.jpg$/i', $file) and $file != "image.gif")
  {
     $filelist[] = $file;
  }
}
srand((double)microtime()*1000000);
$picnum = rand(0, sizeof($filelist) - 1);
header("Location: " . $filelist[$picnum]);
closedir($dh);
?>
And to get that .gif file parsed as a php script, I've added this to a .htaccess file
code:
<Files image.gif>
ForceType application/x-httpd-php
</Files>
The way mentioned above and then going to http://site.com/image.gif  will keep the same file name but not rotate the image on refresh   
So I tried, renaming the image.gif > image.jpg and using...
code:
<?php
$dh = opendir(".");
while (false !== ($file = readdir($dh))) 
{
  if (preg_match('/\.jpg$/i', $file) and $file != "image.jpg") 
  {
     $filelist[] = $file;
  }
}
srand((double)microtime()*1000000);
$picnum = rand(0, sizeof($filelist) - 1);
header("Location: " . $filelist[$picnum]);
closedir($dh);
?>
code:
<Files image.jpg>
ForceType application/x-httpd-php
</Files>
So now everything else that was for the .gif was changed to .jpg also, well then when I would goto http://site.com/image.jpg  the image would more or less just re-direct to http://site.com/image1.jpg  and then upon going to http://site.com/image.jpg  again it would rotate to http://site.com/image2.jpg  
So basicly the second method worked for the rotation part, but not in the file name staying the same like the other method did, which brings me here   
I want the url in the address bar to remain the same and only rotate the image not redirect to another image, so basicly rotate the image but keep the same file name   
*Any help is appreciated*
[This message has been edited by Synthetic (edited 11-26-2002).]