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" <[EMAIL PROTECTED]>
To: "Matt Palermo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to