Re: Displaying image paths with spaces
| From: | Skip Evans | Date: | Mon, 07 Sep 2009 17:14:48 +0000 |
| Subject: | Re: Displaying image paths with spaces | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297763@lists.php.net to get a copy of this message | ||
Ashley Sheridan wrote:
How are you outputting those URLs? PHP won't just automatically converty '%20' to a '\ '. What is the raw URL format you're getting from FCKEditor? Thanks, Ash http://www.ashleysheridan.co.ukThe raw code in the FCKeditor looks like this: src="/clients/client_118/images//Event%20images/Show%20ads/catspaw1compressed.jpg" (withing an <img...> tag of course) But when the page displays and the images do not appear, viewing the image's properties shows this: (Notice the %5C). That %5C is what I think is being converted to a slash. Why it shows up is baffling me. http://penguinsites.com/clients/client_118/images//Event%5C%20images/Show%5C%20ads/catspaw1compressed.jpg I simply output the code from the FCKeditor with a plain echo to the browser. But then if I right-click the image to view it, that's when I see this The requested URL /clients/client_118/images//Event\ images/Show\ ads/catspaw1compressed.jpg was not found on this server. So it seems it's not preserving the %20 as coded spaces, and also converting that %5C to a slash! Whaaaa???? Thanks, Skip -- ==================================== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com ------------------------------------ Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut