Reputation: 47
I'm going crazy over one problem, have been trying to fix it for very long and yet, no product.
I'm using Windows 7,PHP,Apache(Can't really do anything with apache, haven't needed yet)
I'm trying to simply make a folder and as said in the name of this thread I'm getting permission problems. The code:
mkdir("\memberFiles\$id");
What I've tried:
Fixing this problem would be the best thing in this week
Upvotes: 0
Views: 3427
Reputation: 2606
I don't think you've got a permission problem.
You are using Backslashes for the path but that would just escape the next character.
If you want to create the folder in the current directory use:
mkdir('./memberFiles/$id');
If you really want to create it in the root directory of the current drive (eg. C:), use:
mkdir('/memberFiles/$id');
If it would really be a permission problem, it would throw a warning:
PHP Warning: mkdir(): Permission denied in ... on line ...
Upvotes: 1