Jump to content

Remote File Download..?


cyfer65

Recommended Posts

Yes, it's possible. Sending the right Content-Type and Content-Disposition headers and using file_get_contents to load the file from the other site. If fopen doesn't have permission to perform remote requests you can use cURL to load the file contents instead.

Link to comment
Share on other sites

Here's an example of how to make a download dialog for some content:http://www.php.net/manual/en/function.head...header-examplesThis example shows how to get contents from a remote URL:http://php.net/file_get_contents#example-1972This example shows how use the cURL library:http://www.php.net/manual/en/curl.examples-basic.php

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...