Jump to content

Remote File Download..?


cyfer65
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...