Go Back   Netpond ™ > Webmaster Forums and Resources > Adult Webmasters Main Forum
Register FAQ Calendar Radio and TV NP Shop Search Today's Posts Mark Forums Read

Adult Webmasters Main Forum Friendly adult web master chat, help and information

Dating
Reality, celeb TubeClicks Megasite, DVD Download, Gay
Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2007, 02:47 AM   #1 (permalink)
geddy
constant angry scowl - free of charge.
 
geddy's Avatar
 
Join Date: Nov 2007
Location: Newark, NJ
Posts: 77
Points: 385
Send a message via AIM to geddy
Advice requested from any coders!

Hey folks,
So I've got this dilemma. I've built an entire system to automate site updating with new image sets. Basically, I can upload a directory of images, and when the site updates, it will automatically thumbnail all of the images and build an index.html file in the image set directory which is a thumbnail gallery.

The problem is--the gallery is thumbnailed by an image cropping PHP script. Hence, it requires alot of resources. This isn't a problem for 2-3 image sets, but if I make a huge update of 20-30 galleries, it takes a couple of minutes, which will definately lag the server, and since I'm on a shared hosting account, this will kill all of resources, and thus, I will be screwed.

Anybody have a good idea how I should go about server-side thumbnailing that will not destroy my server? Maybe if someone else has done this sort of thing, they will have a good idea of how to do it efficiently but without taking up too many system resources. Thanks!
__________________
Any questions regarding:
HTML, CSS, Javascript, PHP, VB.NET, or anything else computer-related, never hesitate to contact me on AIM @ 'g3ddy'.
Excellent hosting, great support, huge bandwidth, lots of storage space!
geddy is offline   Reply With Quote Send a private message to geddy
Old 12-20-2007, 03:13 AM   #2 (permalink)
apcwebmaster
I disagree.
 
apcwebmaster's Avatar
 
Join Date: Aug 2007
Location: Australia
Posts: 2,542
Points: 535
Send a message via ICQ to apcwebmaster
Is there any way to prioritize the resources the server devotes to any particular task? maybe ask your host
apcwebmaster is online now   Reply With Quote Send a private message to apcwebmaster
Old 12-20-2007, 05:00 AM   #3 (permalink)
Meat
Im looking for a wife who would like to live in SPAIN
 
Meat's Avatar
 
Join Date: Oct 2002
Location: Spain
Posts: 24,712
Points: 94,059
Send a message via ICQ to Meat
bump for geeddy
__________________
Its not the quantity of the bump its the quality of the bump.

Meat is online now   Reply With Quote Send a private message to Meat
Old 12-20-2007, 05:07 AM   #4 (permalink)
Donkey
Traffic Animal
 
Donkey's Avatar
 
Join Date: Jun 2004
Location: CZ, Prague
Posts: 10,297
Points: 920
Send a message via ICQ to Donkey
I belive there is an apache mod that allows you to cap resources used by a certain user account...

http://httpd.apache.org/docs/2.0/mod/core.html i am sure you can find similar or modded for the purpose u need.
Donkey is online now   Reply With Quote Send a private message to Donkey
Old 12-20-2007, 06:05 AM   #5 (permalink)
mojoman
and the award for the most annoying avatar...
 
mojoman's Avatar
 
Join Date: Feb 2006
Posts: 3,746
Points: 1,675
why not build the thumbs as the gallery page is loaded. that way, they're not all created at the same time.
__________________
Quote:
Originally Posted by God
And number eleven: "Thou shall not whore on forums"... What? What do you mean there isn't enough space?
mojoman is offline   Reply With Quote Send a private message to mojoman
Old 12-20-2007, 06:25 AM   #6 (permalink)
surfviking
Learning ...Still learning
 
Join Date: Jun 2007
Posts: 75
Points: 375
Caching...

have a thumbnail script that after the thumbnail has been generated writes the file into af /cache folder

so next time your thumbnail script is asked to thumb that picture, it just loads up the cached thumb, and writes it back to the browser...

that's the simple version, more advanced could be with timestamp checking and so on..

-SurfViking
__________________
I like Juggcash
surfviking is online now   Reply With Quote Send a private message to surfviking
Old 12-20-2007, 04:59 PM   #7 (permalink)
geddy
constant angry scowl - free of charge.
 
geddy's Avatar
 
Join Date: Nov 2007
Location: Newark, NJ
Posts: 77
Points: 385
Send a message via AIM to geddy
Well, it only thumbnails everything once.. each time it finds a new set it does this. But I can only thumbnail the images that one time as soon as the first person clicks on a set.. but if the traffic gets too high and it's thumbnailing like crazy, I think that's going to cause even more problems with system resources.

I think I may have to just program an administration area where I can make updates from.

Thanks for the suggestions though folks!
__________________
Any questions regarding:
HTML, CSS, Javascript, PHP, VB.NET, or anything else computer-related, never hesitate to contact me on AIM @ 'g3ddy'.
Excellent hosting, great support, huge bandwidth, lots of storage space!
geddy is offline   Reply With Quote Send a private message to geddy
Old 12-22-2007, 04:07 AM   #8 (permalink)
tolik
Is Aga really Little Buddha?
 
Join Date: Dec 2003
Posts: 1,295
Points: 235
Send a message via ICQ to tolik
php sucks in this case. use some perl script and imagemagik installed in safe mode. (they have some option like this)
__________________
LONGBUCKS - Teen, Mature, Reality, Gay sites.
Unlimited free hosting (with cgi/php/mysql/cron etc). FHGs. Free content.
Signup now and icq me for support - 313-882-945
tolik is offline   Reply With Quote Send a private message to tolik
Old 12-23-2007, 06:29 AM   #9 (permalink)
surfviking
Learning ...Still learning
 
Join Date: Jun 2007
Posts: 75
Points: 375
Well there is another option

on the gallery page, use the "oncomplete" event on the img tag to load 1 thumbnail at a time.... that way it won't spawn 20-30 thumbnail calls at the same time... and if you use a bit of disk caching in your thumbnail script, resources are kept at a minimum..

I could do a small javascript pseudocode example of this if you wanted ?

-SurfViking
__________________
I like Juggcash
surfviking is online now   Reply With Quote Send a private message to surfviking
Reply


Thread Tools
Display Modes



Netpond Resources
Resource Directory Tutorials & Articles Webmaster Tools Netpond News
 
Netpond Resources
LoveDollars WildCash PussyCash TopBucks
Fetish Hits Cyberwurx BoobBucks.NET Python
AEBN GroobyBucks Score-Cash PluginFeeds
Rabbits Reviews CraziesCash TrafficCashGold EvilAngelCash
Orgycash BigClicks Webcams TubeClicks
Free Porn Paradise British Porno British Porn Models ShanesworldCash
Megasite Megasite, Gay, Shemale, Fetish
All times are GMT -4. The time now is 07:11 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007, PixelFX Studios