Re: rename failes if file name contains single quotes

From: Date: Fri, 31 Jan 2003 09:26:20 +0000
Subject: Re: rename failes if file name contains single quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133751@lists.php.net to get a copy of this message
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/

« previous php.general (#133751) next »