random gallery pic

Started on the old forum in November 2010 · view the original in the archive · old links redirect here

3 replies · 805 views · started 16 years ago · 1 min read

3 participants
pmbguy Senior · 344 posts #1

ok, i coded a little twist on the standard rotate.php script...

what this does is outputs a thumbnail of image instead of setting header to load image...

should be useful for popping a few copies of in your gallery pics folder and load as images to get random gallery pics wherever you need them... hope this helps someone out there...

ok, first up: image rotate (non database)

n then my thumbnailer for loading gallery pics. If you use such a thumbnailer instead of phpThumb, you can keep your directory structure hidden meaning if people upload shell script, etc they don't know the url to uploaded file meaning they can't execute it...

I attached both files below:

Added after 4 minutes:

demo of random avatar: http://piratemob.info/avatars/rotate.php

demo of thumbnailer, check my site url in signature, gallery images, etc (not site images) but ie: where it says meet (x) our xth member on index page - thumbnail, not actual fle... another good thing about thumbnailer is it reduces image size meaning faster loading of pages...

warfrek Junior · 44 posts #2

nice job dude! Thumbup

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close