08-18-2008, 06:03 PM
|
#1 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
|
mkdir - need help
im trying to make this code work
Code:
$userid = $_COOKIE['usersid'];
$foldername = "/upload/".$userid;
mkdir($foldername) or die("error");
so a directory will be created inside the upload folder by the name that is stored in the cookie.
this is the error im getting
Code:
Warning: mkdir() [function.mkdir]: Permission denied in /home/gothostin/www/www/checklist/intro.php on line 8
error
if this is a permission problem, how do i set chmod to 777 ?
the 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?
__________________
no signature set
|
|
|
|