Re: Not working?
| From: | Matt Grimm | Date: | Thu, 08 Jan 2004 18:27:39 +0000 |
| Subject: | Re: Not working? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174063@lists.php.net to get a copy of this message | ||
You can't use variables inside single quotes, either.
This:
'/path/to/old.$today'
ought to be:
"/path/to/old.$today"
--
Matt Grimm
"Jas" <jason.gerfen@scl.utah.edu> wrote in message
news:20040108174715.71847.qmail@pb1.pair.com...
> 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.
> Jas