note 36856 deleted from function.rename by aidan

From: Date: Wed, 23 Mar 2005 01:03:11 +0000
Subject: note 36856 deleted from function.rename by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86812@lists.php.net to get a copy of this message
Note Submitter: webmaster at handleiding-online dot nl ---- To come back on the two word directory rename not working: Instead of using: rename("c:/program files/test/test.txt", "c:/program files/test.csv") you can use the old DOS format name to get to the specific file in paths like these. rename("c:/progra~1/test/test.txt","C:/progra~1/test/test.csv") all will go fine. Just remember all long filenames, including the ones with spaces and special characters in it, are also there in the 8.3 format you were used to using DOS, and can be handled as such. Safest bet would be to perform a dir command in a dos box, to verify the 8.3 name for directories. Regards, Michel

« previous php.notes (#86812) next »