[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: After the user chooses a file and hit the submit button,the browser displays the content from the "uploads"

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