How can I send a file/script from client to server using Jquery? -


I have a file in a client folder that contains some PHP scripts to be sent to the server. The file name is known and We do not have any users in the client side to browse the disk and then upload the file (I have shown some code on the internet how to upload the file from the disk to the server). I have to know how I can give a file name in jquery and can send the file to disk on the server and store it anywhere on the server.

I think it is related to some security risks, but it is only for an experiment that is difficult to understand.

Note: I do not need the code for which the user select "file" and then press the upload button.

Further note: Consider the fully-running web-based application with 5 sub-tasks in the client side (local web server). At runtime, we decide to run 2 of the 5 tasks inside the local web server in the client side and upload it to the server for the rest. So how should this script be separated from the customer? It does not need to be file.php, but any data type that can contain PHP code is okay.

Thank you in advance. To quote your own answer from

, there is no way by which you Access the user's local file. This will be a big security exception, only one way through which you can access the user's file, that is, when the user voluntarily uploads the file.


Now, if you have a solution, if you have only 3-4 members and they are not variables, then you should try to use a local server for web pages Why get online access?

You can save bandwidth by using a local server, as well as the pages will load very fast and then yes you can put the file in the local machine in your project folder.


For starters, and a boon can prove. They are included with mysql, php and administrative features. This should be what you want.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -