move_uploaded_file failed to open stream: Permission denied - Mac

Während ich versuche, move_uploaded_file php mit folgenden code :

if(is_uploaded_file($_FILES['fileupload2']['tmp_name'])){

        move_uploaded_file($_FILES['fileupload2']['tmp_name'], "images/".$_FILES['fileupload2']['name']);

    }

Ich habe diesen Fehler sagen:

Warning: move_uploaded_file(images/VIDEO_TS.VOB): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/Week3/Lesson2/do_upload.php on line 24

versuchte ich in der Klemme und hat nicht funktioniert:

sudo CHMOD 775 /Applications/XAMPP/xamppfiles/htdocs/Week3/Lesson2/do_upload.php 

sudo chmod -R 0755 /Applications/XAMPP/xamppfiles/htdocs/Week3/Lesson2/do_upload.php 

sudo chown nobody /Applications/XAMPP/xamppfiles/htdocs/Week3/Lesson2/do_upload.php 

Ich bin noch immer die Fehlermeldung und ich bin mit Yosemite, jede andere Lösung ?

InformationsquelleAutor AaoIi | 2015-08-10
Schreibe einen Kommentar