I have installed Raspbian, PHP 5.4.39 and Apache 2
I have a script, where i want make directory with PHP.
My script:
Code: Select all
<?
if (!file_exists('content/' . $schedule[0]['id'])){
mkdir('content/' . $schedule[0]['id'], 0777, true);
}
?>Code: Select all
<?
mkdir('content/');
?>The permission of the webroot folder:
drwxrwxrwx 3 root root 4096 May 13 21:45 sgc-client
The permission of the file:
-rwxrwxrwx 1 root root 2822 May 13 22:14 apikey.php
The permissions of directory /www
drwxrwxrwx 3 root root 4096 Feb 16 12:34 www
What could be the problem ?
Thanks.