![]() |
mkdir - need help
im trying to make this code work
Code:
$userid = $_COOKIE['usersid'];this is the error im getting Code:
Warning: mkdir() [function.mkdir]: Permission denied in /home/gothostin/www/www/checklist/intro.php on line 8the weird thing is when i tried doing this mkdir(testfolder); it worked and the folder was careted. but when i try doing that it doesnt work.. any ideas? |
Quote:
Quote:
|
Just a note, 0755 should be good enough for anything you need to do - setting any permissions to 0777 is dangerous, and should be avoided if at all possible.
Tutorial for chmod chmod - Wikipedia, the free encyclopedia -m |
you could use the exec() function to execute a command in the computer and use the chmod command in it.
|
Some hosts don't let you create directories from the application user for security/speed reason (they would have to create a new user for every account). This is one of the many reasons I do not like shared hosting.
|
Quote:
PHP Code:
|
Quote:
|
| All times are GMT. The time now is 07:37 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0