return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
PHP Help
View this Thread in Original format
Blake613
I have a directory holding 20 jpg files and I want to randomly select an image for display on a web page.

Do I need a cgi-bin? or do I just place some PHP code within all my HTML. Can anyone post some example code? Thanks.
Orbax
Dude, youre making a pr0n site, dont try to make this sound technical
Porky
quote:
Originally posted by Orbax
Dude, youre making a pr0n site, dont try to make this sound technical


hahahah.. caught right handed!!!! or was that left handed?!?!?!

:conf: :conf: :wtf:
Inertia
quote:
Originally posted by Blake613
I have a directory holding 20 jpg files and I want to randomly select an image for display on a web page.

Do I need a cgi-bin? or do I just place some PHP code within all my HTML. Can anyone post some example code? Thanks.


i havent coded anything in a good while, but im pretty sure
there is no need for CGI, its a rather simple thing you want
to do, some javascript, perl, python, and of course, PHP could
each very well do the trick.
Porky
quote:
Originally posted by Blake613
I have a directory holding 20 jpg files and I want to randomly select an image for display on a web page.

Do I need a cgi-bin? or do I just place some PHP code within all my HTML. Can anyone post some example code? Thanks.


brent.. php code should do the trick
k.k.d.
umm.. provided your image files are named the same, and only their last number changes, it would be as simple as something like this:

echo '';
?>
xtr3m
kkd = h4x

And, by the way -- happy birthday, mate. :rolleyes:
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement