[PHP] move_uploaded_file() does not return any value or warning

2011-10-14 Thread Partha Chowdhury
Hello List. I am learning php and MySQL for my project work. I am trying to upload files to local server. First, a page is displayed on the browser to upload file Relevant code: form method=post action=index.php enctype=multipart/form-data input type=file name=file br input type=submit

Re: [PHP] move_uploaded_file() does not return any value or warning

2011-10-14 Thread Partha Chowdhury
On 15/10/11 08:35 AM, Simon J Welsh wrote: Assuming you did $move_uploaded_file = move_uploaded_file($filename, $destination);, then isset($move_uploaded_file) will always be true. isset() just checks if the variable you past to it is set, not if it has a non-false value. You could simply use