Or this:
system("rename('/path/to/new.sh', '/path/to/old' . $today)");
-----Original Message-----
From: Matt Grimm [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 10:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Not working?
You can't use variables inside single quotes, either.
This:
'/path/to/old.$today'
ought to be:
"/path/to/old.$today"
--
Matt Grimm
"Jas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php