Re: create a chmod'd file

From: Date: Fri, 13 Jun 2003 18:43:15 +0000
Subject: Re: create a chmod'd file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-151402@lists.php.net to get a copy of this message
I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777); But, this doesn't work, and I'm not sure how to go about chmod'ing the file for these permissions so that it can be changed later on. Matt ----- Original Message ----- From: "Alex Earl" <slide@duke-of-earl.com> To: "Matt Palermo" <mpalermo@vt.edu> Cc: <php-general@lists.php.net> Sent: Friday, June 13, 2003 2:37 PM Subject: Re: [PHP] create a chmod'd file > > I have a script that creates a php file based on user input. I need this > > newly created file to have write permissions - chmod 777. How can I have > > the script create the file with these permissions already set? Is this > > possible? > > > > Thanks, > > > > Matt > > > How are you creating the file? fopen()? touch()? Give a little more > information please. > > Alex

« previous php.general (#151402) next »