| | |
PHP Dynamic Images Loads Slowly!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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
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.
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.
![]() |
Similar Threads
- About image mirroring using php (PHP)
- Compile PHP (PHP)
- PHP.ini settings for showing graphics (PHP)
- PHP Members HELP W/DB Images (PHP)
Other Threads in the PHP Forum
- Previous Thread: A Special Invitation to Join abcphp.com
- Next Thread: mysql update help???
| Thread Tools | Search this Thread |
# .htaccess 5.2.10 access alexa apache api array beginner broken cakephp checkbox class clean clients cms code convert cron curl database date directory display dissertation dropdown dynamic echo$_get[x]changingitintovariable... email encode error fairness file folder form forms function functions google hack href htaccess html htmlspecialchars image include indentedsubcategory ip javascript joomla legislation limit link local login mail memberships menu methods multiple multipletables mysql mysqlquery network newsletters oop open passwords paypal pdf persist php provider query radio random redirect remote script search secure server sessions simple sockets source space spam sql system table tutorial upload url user variable video voteup web youtube





