QUOTE
Warning: mkdir(/home/whistle/public_html/see/seeto): Permission denied in /home/whistle/public_html/see/config.php on line 56
My web hosting is on the astahost. The absolute path of my php script is "(/home/whistle/public_html/see". When I try to create a directory named "seeto", the error message about permission denied is displayed. The same script I tried on another web hosting server "Lycos", it works perfectly.
Can anyone tell me what is wrong with it? Or anything I should notice more? Thanks.
CODE
<?php
if (mkdir("/home/whistle/public_html/see/seeto", "0777")) {
printf("New directory created");
} else {
printf("Couldn't create directory");
}
?>
if (mkdir("/home/whistle/public_html/see/seeto", "0777")) {
printf("New directory created");
} else {
printf("Couldn't create directory");
}
?>
That's my php script for testing the directory creation. Of course, the same error message is displaied as following:
Warning: mkdir(/home/whistle/public_html/see/seeto): Permission denied in /home/whistle/public_html/see/test.php on line 2
Couldn't create directory <=== This is not a part of the error message.
<=== It is my prompt message in the else block.
It seems that the php script does not get permission for create a directory or a file. What should I do to open the permission for my PHP scripts.


