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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux