The program cannot use the problem after installing using Phpnow

Source: Internet
Author: User
Tags mysql connect
(2) upload.php---//brief description upload interface, user select File, Then submit it to submit.php. It is worth noting that a max_file_size is a hidden range, and by setting its value you can limit the size of the uploaded file. Program source Code      <title>File Upload Form</title>         
 
 
Select Upload File
(3) submit.php---//brief description of the user upload files together with the basic information of the file to save the database//program source code //////////////////////////////////////////////////////////////////////


The original can be used under the php5.0, now upload the file is always reported "you did not upload any files", the direct echo $myfile did not


Reply to discussion (solution)

Your program needs
Register_globals = On

and PHP 5.2 is the default
Register_globals = Off
The

and PHP 5.4 doesn't have this switch anymore.

$myfile should write $_files[' myfile ' [' Tmp_name ']
Other than that
$file _type = $_files[' myfile ' [' type '];
$file _name = $_files[' myfile ' [' name '];
$file _size = $_files[' myfile ' [' Size '];

Where it is not done, it is executed mutatis mutandis

Ok~ very grateful, is glob This parameter has a problem, thank you

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.