php : how to download file from dropbox directly

i have big file on my dropbox account , and i want to download it to my web server , so any idea how can i download it directly from dropbox to my web server .

Supporter Asked on April 8, 2016 in Software.
Add Comment
1 Answer(s)
Best answer

yes you can download files from dropbox directly using php file_put_contents function

 

set_time_limit(0); // unlimited max execution time

$furl = 'http://www.dropbox.com ';   # dropbox file download link ....  add   ?dl=1   to end of link
file_put_contents("dpfile.zip", fopen($furl, 'r'));

 

 

Supporter Answered on April 8, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.