At 09:52 31.01.2003, =?ISO-2022-JP?B?GyRCJVghPCVzGyhCIBskQiVIITwlXiU5GyhC?=
said:
--------------------[snip]--------------------
>when i try to rename a file with single quote(s) in the
>file name, e.g.
>
>rename("/tmp/foo 'n bar", "/tmp/foobar");
>
>rename fails with "there is no such file".
>whats wrong?
--------------------[snip]-------------------- 

try to escape blanks and quotes:
    rename("/tmp/foo\ \'n bar", "/tmp/foobar");

generally you should escape all non-ascii characters in file names.

-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



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

Reply via email to