Hi Digitalpoint: I have this error I don't know why. Maybe someone with xp will know. Warning: mkdir() [function.mkdir]: Permission denied in /usr/home/allfoodm/domains....file.php in line 18 What does a warning mean? Why is permission to write denied? Does it have to do with that file.php in line 18? This is what line 18 is How can I fix it? $dir = realpath("../uploadedfiles"); if (is_dir($dir)) { srand(make_seed()); $id = md5(time().rand()); $dir .= DIRECTORY_SEPARATOR.$id.DIRECTORY_SEPARATOR; // $dir .= DIRECTORY_SEPARATOR.$id; Line 18 here>>>>if (!is_dir($dir) && mkdir($dir)) chmod($dir,0777); if (is_dir($dir)) { $filename = $dir.basename($filename); if ($filename && ((file_exists($filename) && unlink($filename)) || !file_exists($filename))) { move_uploaded_file($_FILES['filename'.$i]['tmp_name'],($filename)) ; $uploaded = true;
What do you mean I need chmod "../uploadedfiles" to 0777 ? I have a folder called "uploadedfiles" CAn you explain? (not a programmer) so tell me in simple language I can understand.
Or you can do via SSH: chmod 0777 uploadedfiles Most FTP managers allow you to CHMOD your values aswell.
I see, how would I do that with "DirectAdmin" there's 2 options not sure if there are more. 1)set permissino 755, the other 2)reset own. I think I could change the set permission to be "777" without the 0 would that work? (Question 1) --------------- I am using FTP commander, Is it 0777 and 777 the same thing in php ? chmod ? How would I do that in FTP commander ? (Question 2)
use 777, in most ftp managers you simply need to right click on the folder and click Chomod Properties / or File Properties / or just Properties. Then a dialog should popup where you can write in numbers, along with some checkboxes ( at least in mine ) which check/uncheck if you write your persmissions, so you will see exactly what the number are good for Edit: ah to late
Thanks Basti, even though you're late. BTW. If I was downloading from outlook, mail.mysite.com what is the outgoing box ? I used mail.mysite.com and it does not work. Do you know the general in and out box ? I know the in box is default mail.mysite.com but not the out? what is it? is it outmail.mysite.com ? Thanks. ie. mail.digitalpoint.com for retrieving, whats? the outgoing address? should be in general ?