Random Image Question Random Image Question
 

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

Main Menu

Random Image Question

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

Previous topic - Next topic

0 Members and 1 Guest 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