i've tried all codes founded here and in the manual of PHP, but no one works until now.
my code (the latest) is below:
<?php
// up.php (it should upload the files)
$destination="../files/$userfile_name";
if (isset($submit))
{
$file_name = $HTTP_POST_FILES['userfile']['name'];
move_uploaded_file($userfile, $file_name);
}
?>
when a submit this, an error message occurs like this:
Warning: Unable to create 'camera_01.jpg': Permission denied in /www/my_user_name/public_html/tests/up.php on line 46
Warning: Unable to move '/tmp/phpMftyyb' to 'camera_01.jpg' in /www/my_user_name/public_html/tests/up.php on line 46
my line 46 is below:
move_uploaded_file($userfile, $file_name);
someone please, HELP ME!!! I have to ask permission to my server? What type?...
Thank you.