Re: Not working?
| From: | Roger Spears | Date: | Thu, 08 Jan 2004 17:49:18 +0000 |
| Subject: | Re: Not working? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174060@lists.php.net to get a copy of this message | ||
Jas wrote:
I think I must be missing something but this command isn't renaming the file specified... Pointers, tips appreciated! system("rename('/path/to/new.sh', '/path/to/old.$today')"); /to directory has permissions set to current user and is also owned by the current user (test_user)... I can write files into the directory and delete files form the directory using the 'unlink()' command but the rename function I am having problems with. Jasremove the " from around the rename function: You have this: system("rename('/path/to/new.sh', '/path/to/old.$today')"); Try this: system(rename('/path/to/new.sh', '/path/to/old.$today')); HTH, Roger