![]() |
Random Image script
I'm looking for a random image script that will put 3 random thumbnails on my site that link to their proper gallery page. The thumbs should change on refresh and show new random galleries. I put a small php script on my site that could do it but ended up eating all my server resources in less than 5mins.
Any help, suggestions? Thx Thx |
I don't see why a php script couldn't handle it, php is generally fairly light unless it's written poorly.
Is it mod_php or just running as cgi? and what level of traffic? |
I have something similar around, however, it doesn't dynamically display the thumbnails. That tends to hurt your server with large amounts of traffic, so a cronjob would be a better option.
|
Ya I was thinking of that on my way home just now. Cronjob it to run every 2mins or so. I'd be pushing approx. 20 runs per second the other way which was bad, I shoulda learned my lesson from something else I wrote awile back.
Are there any free scripts out there that I could customize...? anyone know? |
Plat:
Try these links.. http://www.cosmicscripts.com/ http://www.teca-scripts.com/free/randex.php Both have a few scripts that may do what you want!:glugglug |
Quote:
|
Plat:
yea punkworld is right... have a look at these links.. there are scripts there where you could arrange the pics or whatever to display at random by grouping em - no need to run cron... cron is a sledgehammer to crack that peanut! |
Quote:
I hate to bring this fag as an example but. Sexocean how the galleries rotate after every refresh, I just want 3 galleries to rotate not a million galleries that link to CP and dialers like he does. |
Quote:
Cronjob runs once daily to make the php script select a bunch of pictures and cram the javascript to go with them in a file, that javascript chooses randomly from those pictures and displays a few of them. |
Plat:
Three galleries are a piss thru with random scripts.. totally flexible! I got well over 500 feeder sites that are almost entirely generated using random scripts - dig into em and you will see the possibilities! |
well actually let me rephrase what I said up top.
3 images A - B - C with 5 galleries for each letter rotating |
I'll script it for you in PHP and if you want cron commands, let you know how.
josh at picjunkie dot com |
I emailed you Josh.
If anyone else can help I can pay you back with traffic if you like. Thanks |
its easy done in java
I will post it for you How many thumbs / links are there? |
Quote:
|
whats your icq?
|
45580484
|
|
grumpy:
Neato one!:thumbsup |
All times are GMT -7. The time now is 07:30 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123