Results 1 to 1 of 1
Thread: XAMPP server permissions.
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- May 2011
XAMPP server permissions.
Im trying to get a PHP upload form to work and i keep getting these terrible errors when the PHP script tries to create/move files within the server.
Warning: move_uploaded_file(uploads/DSC00141.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplgVvan' to 'uploads/DSC00141.JPG' in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6
There was an error uploading the file, please try again!
As a troubleshooting step I just printed the array and got no errors, the script seems to be working fine.
[image] => Array
[name] => DSC00141.JPG
[type] => image/jpeg
[tmp_name] => /tmp/phplgVvan
[error] => 0
[size] => 520824