note 59715 deleted from function.mkdir by mazzanet
| From: | mazzanet@php.net | Date: | Wed, 17 Dec 2008 11:06:27 +0000 |
| Subject: | note 59715 deleted from function.mkdir by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148255@lists.php.net to get a copy of this message | ||
Note Submitter: trond at trondhuso dot no
----
While researching for this function, I have found out that - at least on my system - mkdir only
works when the parent directory is the one your script is in.
eg:
you want to create a directory tmp
mkdir ('tmp', 0775);
will create /path/to/your/script/tmp
but if you this
mkdir ('/path/to/your/tmp', 0755);
or
mkdir ('../tmp', 0755);
both will cause an error - permission denied.
Trond