rawurlencode() is the answer to your question.

Bogdan

Kevin Garrett wrote:

> Hi guys,
>
> I've an index script which views the contents of a directory on a unix
> server.  This unix server has also got file with windows naming convesion,
> which makes a file with spaces look like this "/this\ is\ an\ example/".
> The file name itself appears fine but there is also a link to the file which
> would only see the "/this\ " part of the file.
>
> My question is, does anybody know how to get php to accept spaces in a file
> name?
>
> Thanks
> Kev
>
> _________________________________________________________________
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to