How to fasten 100 MB of files during (before) downloading, so that the download speed can be increased?

Possible duplicate:
Uploading a file with HTML compression?

I am complaining from the client that my website takes longer to load 100 MB of time (I know that it takes longer because of this size), so I plan to upload the files that they get locked before downloading and are loaded into the desired location, and then unpacked along with the removal of this downloaded file in zip format.

So can anyone suggest me how to proceed further?

I use PHP, there is no awkward code to upload a file of its simple form with the usual file upload function ...

EDIT How can I integrate Silverlight for this purpose in PHP?

please, help

+1
php unzip zip
source share
2 answers

There is no way to manipulate a file like this with a simple html form and a PHP script. For one reason, in a sandboxed browser environment, there is no access to the client file system.

You might want to learn the Java Applet, Silverlight, Flash solution, something more rich on the client, which you can allow access to the file.

Here is an example using Silverlight

+2
source share

To secure a file before downloading, it must be executed on the client side. PHP is useless because PHP is just a server.

Option 1: you ask your clients to download these files already archived (it seems this is not what you want).

Option 2: you need a way to do this on the server using javascript code - to be honest, I doubt that there is a simple solution for this. Maybe the zip data stream may work, but this requires special permissions for the script (fe ActiveX), and today it will not allow the browser to date.

0
source share

All Articles