Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Random Image Question  (Read 3671 times)

0 Members and 1 Guest are viewing this topic.

amiantos

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Random Image Question
« 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!
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Random Image Question
« Reply #1 on: October 21, 2003, 08:28:42 am »

Search and you will find....
Logged
SANIsoft PHP applications for E Biz
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.