Hi, i need to get direct download link from php redirect URL. the original URL is http://www.domain.com/mp3/download.php?id=4760 Code (markup): this URL finally redirect me into this when i use browser. http://www.domain.com/mp3/201311/song.mp3 Code (markup): now i need to get the second direct URL by php providing first URL. please can you help me. thank you !
nico's solution is fine but remember - there're more ways to create a redirect page so this method is not generic. for example, the use of a meta-tag: <meta http-equiv="refresh" content="0;URL= http://www.newsite.com/newurl.html"> or a use of an htaccess file rule. Good luck!
it's working for my page ... i think it's working for me for now ... and i study about cURL functions yet ...