note 19453 deleted from function.rename by aidan
| From: | aidan@php.net | Date: | Wed, 23 Mar 2005 01:03:43 +0000 |
| Subject: | note 19453 deleted from function.rename by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86813@lists.php.net to get a copy of this message | ||
Note Submitter: haobe at astercity dot net
----
If you want to rename files/dirs within scope of current directory (dir with running script or set
by chdir) you have to add prefix './' ... Works both on win and *nix...
ie. rename('./'.$from , './'.$to);