php download file from remote server, from download url with headers set

EthelM

New Member
Im trying to downlaod a file with php that is located on a remote server, and having no luck. Ive tried using fopen, get_file_contents, but nothing has worked.I am passing in a download URL, which isnt the exact file location, it is the "download url" of the file, which then forces the browser to download.So Im thinking that is why the file fopen and file_get_contents is failing, can someone tell me what I have to do to download a file from a url with headers set to force file download.Any help greatly appreciated!
 
Back
Top