Jump to content
php.lv forumi

File uploading!


thesnarkie

Recommended Posts

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 by thesnarkie
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...