Re: mkdir not working
- From: "John" <john1949@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 18:04:58 -0000
"Michael Fesser" <netizen@xxxxxx> wrote in message
news:ho71q3hfk82b3ev008c9t93nmvnjcha4ll@xxxxxxxxxx
.oO(John)
"Michael Fesser" <netizen@xxxxxx> wrote in message
news:g361q3ds70v9t9veq9hdg93uovmjmskd7t@xxxxxxxxxx
.oO(John)
The following does not create a directory neither does it give any error
message. Any ideas?
$umask=umask(0);
$where="/var/www/vhosts/example.com/httpdocs/friday/";
mkdir ($where,0777);
umask($umask);
error_reporting set to E_ALL|E_STRICT? display_errors ON?
Thanks. Now got a message.
Warning: mkdir() [function.mkdir]: Permission denied in
/home/john/example.com/adhoc.php on line 25
[Line 25 is mkdir]
Should be pretty clear now. The web server doesn't have write access in
the given directory.
Micha
Got it. The directory above the one being created needs write chmod.
Many thanks. Working now.
Regards
John
.
- References:
- mkdir not working
- From: John
- Re: mkdir not working
- From: Michael Fesser
- Re: mkdir not working
- From: John
- Re: mkdir not working
- From: Michael Fesser
- mkdir not working
- Prev by Date: Re: How to use SQL "LIMIT" keyword against an MDB file
- Next by Date: Using Tidy on remote server
- Previous by thread: Re: mkdir not working
- Next by thread: tutorial de PHP
- Index(es):