Re: More image problems...different method
semyaza <semyaza@gmail.com> wrote:
> My images are being served from a different webserver to cut down
> repetition and disk usage. But I am using a rewrite rule for the images
> as they are normally served dynamically.
An example of a url would be useful.
> This has worked in the past but no images are being shown now. If I
> view the properties for an image in Firefox the image alt tag says
> 'can't display the image because there is an error'.
You mean the alt tag of froogle's placeholder of your missing image?
Since those images are served from froogle (even if the url may include
your image url as a cgi parameter) I don't think that's particularly
diagnostic of the real problem.
> My usual image fetching php script relies on CURL. I read the remote
> source and then echo the contents after echo'ing the content-type
> header and content-length header. A parameter is passed for the correct
> item. But my rewrite rule makes it look like it's served from a static
> location which shouldn't interfere with froogle.
Quite true if done correctly, but it sounds cumbersome and slow. Have
you considered having a master image repository, and automatically
synching from there to where you actually want to serve them from. That
way you can have real static images, and you don't have to mess around
with php, curl or mod_rewrite. What you're doing now will almost
certainly break any HTTP caching, costing you more in bandwidth.
Regards,
Peter
--
Peter Robinson
<http://www.ticketswitch.com/> Concerts, sport and theatre tickets
0 Comments:
Yorum Gönder
<< Home