RE: [PHP-DB] mkdir permission
| From: | Jon Farmer | Date: | Fri, 10 Aug 2001 08:18:43 +0000 |
| Subject: | RE: [PHP-DB] mkdir permission | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11212@lists.php.net to get a copy of this message | ||
>I'm trying to make a new directory by doing the following:
>mkdir ("newfolder", 0700);
>but i get the error:
>Warning: MkDir failed (Permission denied) in /home/web/test/upload.php on
>line 159
>Permission is obviously denied but I'm not at the box to change it myself,
>is there a specific entry in the ini file that allows permission for this?
No. It's because the user account that the webserver is running under has no
permissions to create a new directory there. You need to chown or chmod to
correct this.
Regards
Jon
Jon Farmer
Systems Programmer
Entanet International Ltd www.enta.net
Tel 01952 428969
Mob 07968 524175