944,149 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2176
  • PHP RSS
Apr 6th, 2006
0

PHP Dynamic Images Loads Slowly!

Expand Post »
I have a very weird problem. I have a site where a php gd library script dynamically generates gif/png images as a bar indicator. These images i have checked are about 76 bytes each. Yet it loads slowly.

Earlier, i used mod rewrite to rewrite my url as a pure directory. for example...
/business/finance/banking/ where each category i show bar indicators to sites and the image tag i use <img src="/imagebar.php?color=red">

I tried another approach to save each bars separately as static gif files and i felt no difference at all, still loads slowly. i am getting insane with this. Does it has anything to do with mod rewrite slowing down?

here is my mod rewrite file...

RewriteCond %{REQUEST_URI} !^(.+)\.gif$
RewriteRule ^(.+)\/$ listings.php?path=$1
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
olddocks is offline Offline
70 posts
since Jul 2005
Apr 7th, 2006
0

Re: PHP Dynamic Images Loads Slowly!

Try:

RewriteRule ^(.+)\/$ listings.php?path=$1 [L,R]
Reputation Points: 17
Solved Threads: 14
Posting Whiz
DanceInstructor is offline Offline
355 posts
since Feb 2005
Apr 7th, 2006
0

Re: PHP Dynamic Images Loads Slowly!

This is my true .htaccess file

AddHandler application/x-httpd-php .htm
RewriteEngine on
RewriteRule ^sitereport([0-9]+)\.htm sitereport.php?sid=$1
RewriteCond %{REQUEST_FILENAME} !^(.+)\.gif$
RewriteRule ^(.+)\/$ listings.php?path=$1
----------

I tried your [L,R] but seems no different in loading images. also, i used [L] but whenever i use [R] i get page not found error. i still think it has some thing to do with the images. any help would be very much appreciated.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
olddocks is offline Offline
70 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: A Special Invitation to Join abcphp.com
Next Thread in PHP Forum Timeline: mysql update help???





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC