Loading...
PHP

Configuration Supported by File Handling

  1. file_uploads: This is used to allow and stop file uploading.
  2. upload_tmp_dir: This is used to specify a temporary directory location of uploadable files.
  3. upload_max_filesize: This is used to specify the maximum file size for uploadable file
  4. $_FILES[‘name’][‘error]: By using this we can get error number if any occurred at the time of uploading the file. If number is ‘0’ there is no error. If number is ‘1’ file size is maximum than server configuration setting value. If number is ‘2’ file size is maximum than browser configuration settings value. If number is ‘3’ there is some network problem at the time of uploading the file. If number is ‘4’ user click on the submit button without selecting any file.
    <?php
    echo $_FILE[‘f1’][‘error’]
    ?>
Leave a Reply

Your email address will not be published. Required fields are marked *