forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: amiantos on October 21, 2003, 08:14:13 am

Title: Random Image Question
Post by: amiantos on October 21, 2003, 08:14:13 am
I was wondering if it was possible, or if anyone coded it, for there to be a way to include a random image from CPG on a remote website? I'm hosting my CPG on a 1&1 account since my local server does not have PHP, and I'd like to include a random image without using an iframe of some kind on my page. It doesn't matter if it links to the image's page, I'd just like a random image.

I was thinking, since I've seen it done with CGI, to do it like

Code: [Select]
<img src="http://www.domain.com/coppermine/random.php?img">

Would that be possible with PHP or is that strictly a cgi type ordeal? I don't know who'd hack this together if it hasn't already been made but it's a neat suggestion (I'd hope). I know at that rate it would be impossible to link to the exact image unless you set up some sort of javascript trickery (or something).

Just a suggestion/question/request/not sure what.

Thanks!
Title: Random Image Question
Post by: Tarique Sani on October 21, 2003, 08:28:42 am
Search and you will find....