mkdir("temp",750);
gives me this error
Warning: MkDir failed (Permission denied) in /home/virtual/site205/fst/var/www/html/test.php on line 3
how can I fix this problem?
permission denieds
Moderator: General Moderators
Give the user that the command is running under full rights to the folder. I'd wager you need to give apache access to make a folder in that directory.
Keep in mind that just because you make a webpage that makes a directory an you as a user can read/write/delete items in that dir, the php webpage doesn't run under your account. It normally runs under "apache" or something similar.
Paul
Code: Select all
/home/virtual/site205/fst/var/www/html/Keep in mind that just because you make a webpage that makes a directory an you as a user can read/write/delete items in that dir, the php webpage doesn't run under your account. It normally runs under "apache" or something similar.
Paul