|
-
Jun 3rd, 2007, 09:18 PM
#1
Thread Starter
WiggleWiggle
mkdir() problem
I am using mkdir() to make a directory, and it works fine, but if i want to delete the directory, it wont let me...
here is the code i am using:
PHP Code:
$dir = "pics/$memid/";
if(!is_dir($dir)) {
mkdir($dir, 0777);
}
My usual boring signature: Something
-
Jun 3rd, 2007, 10:47 PM
#2
Re: mkdir() problem
I presume you are using rmdir to remove the directory?
The directory must also be empty before deleting
-
Jun 3rd, 2007, 10:50 PM
#3
Thread Starter
WiggleWiggle
Re: mkdir() problem
well no i am manually deleting them through FTP. I get the error like "You dont have proper authorization to delete these files"
I cant delete the folder, subfolders or files
My usual boring signature: Something
-
Jun 5th, 2007, 08:11 PM
#4
Addicted Member
Re: mkdir() problem
well it sounds like the mode you set didn't take... Perhaps your host doesn't allow chmod?
-
Jun 6th, 2007, 12:07 AM
#5
Thread Starter
WiggleWiggle
Re: mkdir() problem
well i am sure it does, we are on a Semi-Dedicated Hosting account
i tried to delete the files with:
unlink($location);
and it didnt work either, returned an error
My usual boring signature: Something
-
Jun 7th, 2007, 03:57 PM
#6
Re: mkdir() problem
is it a unix host?
either way, this is a permissions issue. nothing php can do to help you! ask your host if they allow chmod and what might be causing an error like that.
-
Jun 7th, 2007, 05:32 PM
#7
Thread Starter
WiggleWiggle
Re: mkdir() problem
OK thanks guys. I will get back with the answer.
My usual boring signature: Something
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|