This is all the code you need with the function:
$url = "http://dev.icalapp.rogersdigitalmedia.com.rogers-test.com/Team+Calendar.doc";
$dir = "testing";
downloadRemoteFile($url,$dir);
Also the target directory ($dir
) should be writeable. And your webserver must allow outbound HTTP connections.
1
solved how do I use this remote download file in PHP? [closed]