Results 1 to 1 of 1
Currently using a xampp server on my Ubuntu 11.04 machine to test my sites out before uploading to my web server.
Im trying to get a PHP upload form to ...
- 05-27-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 1
XAMPP server permissions.
Currently using a xampp server on my Ubuntu 11.04 machine to test my sites out before uploading to my web server.
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.
Array
(
[image] => Array
(
[name] => DSC00141.JPG
[type] => image/jpeg
[tmp_name] => /tmp/phplgVvan
[error] => 0
[size] => 520824
)
)
Help?


Reply With Quote