RE: [PHP] Re: Not working?

From: Date: Sat, 10 Jan 2004 00:12:59 +0000
Subject: RE: [PHP] Re: Not working?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174185@lists.php.net to get a copy of this message
Or this: system("rename('/path/to/new.sh', '/path/to/old' . $today)"); -----Original Message----- From: Matt Grimm [mailto:mgrimm@healthtvchannel.org] Sent: Thursday, January 08, 2004 10:28 AM To: php-general@lists.php.net 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" <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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#174185) next »