Forum Moderators: coopster
Thanks.
not sure if that would keep the other server out of the user's eye
I guess you could also grab them with curl or a socket and serve them to them.
you could also pull them over into a temp folder and run a cron that deletes them every so often
not really sure, it would be something you need to play around with
The download.php file finds the file and forces a download script to appear?
Would that work or do I have to force the download from the server requesting it using cURL?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://otherserver.com/download.php?filename=a.mp3');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
if (curl_errno($ch)) {
print curl_error($ch);
} else {
curl_close($ch);
The main prolem is that I have stored the MP3 files above the webroot on the other server so perhaps I should just add an iframe on server1 with a link to server2's download script?
Any implications with that?