View Single Post

  #3 (permalink)  
Old 11-02-2004
Shawn Wilson
 
Posts: n/a
Default Re: cool script but how?

Kris wrote:
>
> http://camacho.tv/index.php
>
> When you click the picture banner on top of the page, it opens a new
> picture. I really like this and I wish I could have it on my site.
> I'm not really into programming and web development, but nonetheless, I'm
> hoping that I can accomplish this with some sort of tool maybe?


Make a directory that contains only images you want to display.

Code stolen and mangled from Chung's post:
$file = array_rand(glob("path/to/files/*.jpg"));
echo '<a href="filename.php"><img src="'.$file.'"></a>';



Shawn
--
Shawn Wilson
shawn@glassgiant.com
http://www.glassgiant.com
Reply With Quote