Php file automatic download

Source: Internet
Author: User
PHP file automatic upload problem description: I want the client to automatically upload a specific file to the server. Currently, PHP is used. The code is as follows: index.html & lt; html & gt; & lt; body & gt; & lt; form & nbsp; action = "upload. php "& nbsp; method =" post "& nbsp; php file automatic Upload
Problem description:
I want the client to automatically upload a specific file to the server. Currently, PHP is used.

The code is as follows: index.html






Upload. php
If ($ _ FILES ["file"] ["error"]> 0)
{
Echo "Error:". $ _ FILES ["file"] ["error"]." ";
}
Else
{
Echo "Upload:". $ _ FILES ["file"] ["name"]." ";
$ File_destination = "E:/mnt/upload/". $ _ FILES ["file"] ["name"]; // target file
@ Copy ($ _ FILES ["file"] ["tmp_name"], $ file_destination );
Echo "Stored in:". $ file_destination;
}
?>

Problem:
1. if you want the client to automatically and silently upload a FILE, you do not need to use the webpage. that is, you need to assign a value to the FILE type and click submit automatically. Access the URL in the client program and automatically upload a file.
2. is there any other method besides php to implement the automatic file transfer function ??? Upload input file php
------ Solution --------------------
Well, I also want to upload the pictures taken by others to my server ......

Do you think this is possible?
------ Solution --------------------
I want the machine to silently Upload the user's account and password to my server.

Yes? Yes!
But I cannot tell you
------ Solution --------------------
. Net framework WebClient class
------ Solution --------------------
"Silently" No, I don't want you to do this. what security is there ~

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.