Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Random Image Question  (Read 3943 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.019 seconds with 18 queries.