thesnarkie Posted October 3, 2009 Report Share Posted October 3, 2009 (edited) Warning: move_uploaded_file(/home/ftpusers/rihards1/moo2.png) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/ftpusers/rihards1/funny.php on line 5 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpUQlhpQ' to '/home/ftpusers/rihards1/moo2.png' in /home/ftpusers/rihards1/funny.php on line 5 <?php $target = "/home/ftpusers/rihards1/"; $target = $target . basename( $_FILES['uploaded']['name']) ; if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } ?> Ko viņš man izmet tādu erroru? :? Edited October 3, 2009 by thesnarkie Quote Link to comment Share on other sites More sharing options...
marcis Posted October 3, 2009 Report Share Posted October 3, 2009 Par vārdnīcu ir dzirdēts? Un vēl varētu papētīt arī konkrētās funkcijas manuāli - http://lv.php.net/manual/en/function.move-uploaded-file.php#75654 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.