Jump to content

download remote file to server (php)


wpervaiz

Recommended Posts

ok, guys, i have a problem. I have a php script that logs into a third party ssl "https" server, constructs a URL for a file download. I need to know if it is possible to download the file locally onto my server, and then display it to the user from my server.

 

If i construct the URL, and direct link it to the user, the user isn't able to access it since he isnt logged into the ssl website (i.e. only me server is) - so since my server is logged in, i want it to download the file, so the user will be able to access it without logging in. The URL is something like: https://www.abc.com/x/y/z/1 -----> this URL gives me a PDF file if im logged in.

 

Hope this makes sense. Any help would be appreciated. Thanks

Link to comment
https://forums.phpfreaks.com/topic/129015-download-remote-file-to-server-php/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.