I'm annoyed. I think I finally give up attempting to resolve this problem. Here it is if anyone wants to take a whack at it:
<?php
$location = 'http://music.capitolrecords.com/playasx.asp?TranSpeedTypeID=4&ContentTypeID=1&MediaAttributeID=4&TrackID=2385'; //First initialize the URL
header("Location: $location"); //Then go there!
?>
Pretty simple, huh? Well, it works just fine on normal URL's. However, this is no normal URL. This happens to be an ASP Page that opens up a Windows Media file in the Windows Media Player based on the variables sent through the URL. The problem is PHP is sending extra header data. I didn't even know it until I tried the following code:
<?php
$location = 'http://music.capitolrecords.com/playra.asp?TranSpeedTypeID=3&ContentTypeID=2&MediaAttributeID=4&TrackID=2385'; //First initialize the URL
header("Location: $location"); //Then go there!
?>
... which happens to be the same video except this time it's for the Real Media Player. Ignoring the fact that the Real Media URL is defective, my Real Media Player returns an error with the URL and the line "?texttype=plain" appended to it. Cannot open the URL blah blah blah. After merely popping the URL into my browser's address bar I receive an entirely different message. Moreover, the Windows Media file opens just fine.
I'm assuming PHP is sending extra header data (specifically: ?texttype=plain). I've tried everything to get this to work. I've even searched online for variations in syntax for the header() function. No luck. If anyone can help, it would be appreciated immensly!