Rayhan420 Posted February 29, 2016 Share Posted February 29, 2016 (edited) Is there any way to show my user that they are downloading files from my site with php & mysql but they are not & the file would not be saved to my server & link will exist forever,like http://othersite.com/download/6562/song.mp3Would show : http://mysite.com/download/65m2/song.mp3 Edited February 29, 2016 by requinix putting urls in code tags Quote Link to comment Share on other sites More sharing options...
Rayhan420 Posted February 29, 2016 Author Share Posted February 29, 2016 Help i am unable to post example links here Quote Link to comment Share on other sites More sharing options...
requinix Posted February 29, 2016 Share Posted February 29, 2016 You want to give them a URL to your site but have it download files from some other site? Would it be enough to support the URL on your site but do a redirect, which most people won't know or care about? Help i am unable to post example links hereYou can if you put them in [code] tags. I've already done it for you. Quote Link to comment Share on other sites More sharing options...
Rayhan420 Posted February 29, 2016 Author Share Posted February 29, 2016 the real fact is this site will be a download portal so,getid3 must be used to the .mp3 file but i don't want to grab because the php comand copy() works very slow for my server.yet wastage of my server space Quote Link to comment Share on other sites More sharing options...
requinix Posted February 29, 2016 Share Posted February 29, 2016 If you need to process that file on your server then you'll need to get a copy of it to your server somehow. Even if that copy is just in memory, there's no way around retrieving the contents. As for disk space, if you download a copy to a file then there's no reason why you can't delete the file when you're done with it. Try using cURL to see if it behaves differently. Quote Link to comment Share on other sites More sharing options...
Rayhan420 Posted February 29, 2016 Author Share Posted February 29, 2016 But php copy() command works very slow.is there any way to fasten it?then i could store the file on my server & how to use curl.example please Quote Link to comment Share on other sites More sharing options...
requinix Posted February 29, 2016 Share Posted February 29, 2016 If you don't manage the server then there's nothing you can do. As for how to use cURL, here is a basic example. Quote Link to comment Share on other sites More sharing options...
Rayhan420 Posted March 2, 2016 Author Share Posted March 2, 2016 Thanks,but i don't want waste my time again in this student life.so,i will buy a vps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.