RE: [PHP] create a chmod'd file
| From: | Matt Palermo | Date: | Fri, 13 Jun 2003 20:36:04 +0000 |
| Subject: | RE: [PHP] create a chmod'd file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151424@lists.php.net to get a copy of this message | ||
What is the umask()? What is that used for? How do I set that up
right?
Matt
-----Original Message-----
From: Jason Wong [mailto:php-general@gremlins.biz]
Sent: Friday, June 13, 2003 3:08 PM
To: php-general@lists.php.net
Subject: Re: [PHP] create a chmod'd file
On Saturday 14 June 2003 03:01, Matt Palermo wrote:
> It just doesn't chmod the file. It doesn't produce errors except for
later
> on in the script when it says it can't access the file with write
> permissions (but it should already be chmod'd by then). Thanks.
If chmod() fails I'm pretty sure it spits out an error, so if you've
already
cranked up error reporting and are 100% positive there's no error being
reported then have a look at your umask() setting.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Q: What do you get when you cross a mobster with an international
standard?
A: You get someone who makes you an offer that you can't
understand!
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php