RE: Displaying image paths with spaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Skip Evans
> HallMarc Websites wrote:
>> Actually, %5C is a \ character, % is %25 
>> Why it is adding a character that is used in local address strings is
>> baffling and I think a clue as to what is going on. Is it possible it
is
>> mashing a local file address into a web address? 
> 
> Aha! I think that might be it. In the database it is stored as
> 
>
src="/clients/client_118/images//Event%20images/Show%20ads/catspaw1compr
essed.jpg"
> 
> But somehow it is converting this to a local file address 
> before it is displayed.

That's the job of the browser. It takes those entities and converts them
to displayable characters. You might want to look at the htmlentities()
and related functions to put it back into the encoded version.

Bob McConnell

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux