Re: Re: Site bloated by images/method question added

From: Date: Thu, 16 Feb 2006 15:33:25 +0000
Subject: Re: Re: Site bloated by images/method question added
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-230554@lists.php.net to get a copy of this message
Lists wrote:
I've already pushed up memory_limit in php.ini, but no good :( Any help would be apreciated. Warm Regards, MARG
The site itself takes ages to appear. lol. Source code please! How is the site genereated? where are the images stored?
Browser Activity on that page (quoted were long delayed):
http://www.dte.ua.pt/portulano/file.php?file=/1/AboutPort1.jpg http://www.dte.ua.pt/portulano/file.php?file=/1/Icons/AnaSmall.jpg http://www.dte.ua.pt/portulano/file.php?file=/1/Icons/PortulanoFavWhite.jpg
none of the files were that big. I've never seen calling an image file like that. What are the benefits?
two possible reasons: 1. to hide the true location of a file and/or force viewing according to certain rules (much easier to perform the logic to determine whether a file should be returned to the requester when you have a programming language to write it in) 2. to be able to generate/change images on the fly (e.g. shown a thumbnail of an image) two things that might be going wrong: 1. file.php is opening the session (the defautl session handler does session locking so that all requests to file.php will be handled in series rather than in parrallel) 2. file.php is generating images and not caching the results (if you did cache the results the page would only, in theory, be slow to load the images on the first view of the page - subsequent requests would be returned the cached copy of the generated image. of course there are many more things that could be going wrong - the OP would have to show some code (i.e. whatever is in file.php ;-) in order for us to determine the problem though.


« previous php.general (#230554) next »