After PHP 3 can be judged by is_uploaded_file () function to determine whether $ _files ['Name "is uploaded by http post method, so that the risk can be reduced in a certain program! Examples are as follows: Phpif (is_uploaded_file ($ _ files ['userfile') {echo "file". $ _Files ['userfile'] ['name']. "UPLOADED SUCCESSFULLLY./N"; Echo "Displaying Contents / N"; ReadFile ($ _ files ['userfile'] ['TMP_NAME']);} else {echo "Possible File Upload Attack:"; Echo "filename '". $ _files [' userfile '] [ 'TMP_NAME']. "'.";}?>
In previous PHP 3 can be determined by the following methods:?.
The above is organized in the PHP help documentation.