Random Image Question Random Image Question
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Random Image Question

Started by amiantos, October 21, 2003, 08:14:13 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

amiantos

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

<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!

Tarique Sani

Search and you will find....
SANIsoft PHP applications for E Biz