Re: Rename problem

From: Date: Wed, 28 Jun 2000 10:32:43 +0000
Subject: Re: Rename problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3558@lists.php.net to get a copy of this message
You need to look at the permissions of the file. the php script runs under the user the web server runs under. So if the file is not in rwx by the user or group the web server runs under then you can't write to it. Actually this is not a php question really. You should read http://www.gnu.org/manual/fileutils/html_chapter/fileutils_3.html this is a good everview of you are not understanding. hope that helps Ken http://cleveland.lug.net/~rocket/ The answer is simple if you grant that ironies are like submarines; dangerous only when submerged. On Wed, 28 Jun 2000, Student, T.U.E. wrote: > Hi, > > when I try to rename a particular file using PHP under UNIX (on my server), > e.g. > > rename("file1.txt","file2.txt"); > > I receive a permission denied error. I'm not very familiar with UNIX, has > this something to do with CHMOD? Please help me, Ton. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#3558) next »