I have a dynamically created image labeled:
stories critiques.jpg
I have use url encode on it when saving it, and it is stored on the server
as:
stories+%26+crtitiques.jpg
[snip]
If I just put the path into the browser directly it also 404's
If I rename the file in any way that removes the % it works...
I thought % was a legal URL encoding character?
URL encoding the file's name on disk is causing your problems. If you
really want to keep it that way, you'll have to double encode the
request, so that when it's decoded once you end up with
stories+%26+crtitiques.jpg. That's pretty needlessly complex.
Why not just leave the file named stories critiques.jpg on disk and
change your image tag to img src=stories amp; critiques.jpg/ ?
--Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php