move_uploaded_file() is not working in kubuntu

Links for php scripts

Moderators: macek, egami, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: move_uploaded_file() is not working in kubuntu

Post by egami » Wed Jan 11, 2012 11:02 am

www.php.net/move_uploaded_file


so what you need is.
$tmp_name = $_FILES['fileid']['tmp_name'];
$filename = $_FILES['fileid']['name'];

if (move_uploaded_file($tmp_name,"$path/$filename)) {
echo "success.<br>";
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest