PHP: upload file to client...
How does one upload a file to a client in PHP? I'm trying
to implement the following... user clicks on link (with encoded filepath). - script validates user - script validates path - local path is concatenated with the input path to locate the file on the local filesystem - check if the file exists - how do I send the file to the client. |
Here's the goodies, example and all:
http://www.php.net/manual/en/features.file-upload.php also look at is_uploaded_file() and move_uploaded_file() |
Re: PHP: upload file to client...
Quote:
I'm trying to send from server to client not the other way around. I figured it had to do with modifying the HTTP header with header() but I can't figure out the exact strings to put into the header() call. |
Oh, my bad.
To send a zip file... Code:
<?php |
All times are GMT -5. The time now is 08:05 PM. |