User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 392,071 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,248 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1275 | Replies: 2
Reply
Join Date: Jul 2005
Posts: 67
Reputation: olddocks is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
olddocks's Avatar
olddocks olddocks is offline Offline
Junior Poster in Training

Help PHP Dynamic Images Loads Slowly!

  #1  
Apr 6th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Posts: 354
Reputation: DanceInstructor is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 12
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: PHP Dynamic Images Loads Slowly!

  #2  
Apr 7th, 2006
Try:

RewriteRule ^(.+)\/$ listings.php?path=$1 [L,R]
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote  
Join Date: Jul 2005
Posts: 67
Reputation: olddocks is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
olddocks's Avatar
olddocks olddocks is offline Offline
Junior Poster in Training

Re: PHP Dynamic Images Loads Slowly!

  #3  
Apr 7th, 2006
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 12:03 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC