What is better for the code segment, sockets or multiple processes?
If you want to use this function you should have buffering:


function failOut($http, $text) {
    header('HTTP/1.x ' . $http);
    die(htmlspecialchars($text));
}



Otherwise it's possible that the script sends out some output (including error messages) and you can't send out any header later. (How do headers work with output buffering in PHP?) Anyway, I don't see any call to this function, so you might be able to remove it.

$con = mysql_connect('localhost',$user,$password) or die('Could Not Connect..');



As others already suggested you should use mysqli or PDO. Another note is that you might want to set the HTTP response code to 503 here to save your search engine ranking when the database is down.

$params = $_GET; 
...
$count = mysql_query("select * from info where ID='".$params['id']."'")or die('Error In Query'.mysql_error()); 



As others already mentioned in comments it's not safe against SQL injections attacks. mysql_error() should not be the output of the script. Show only a generic error message and log the details to a server-side log file, don't help attackers. It would also be more user-friendly, most of the users doesn't care nor understand MySQL errors (or at least can't fix them). (How to log errors and warnings into a file?)

$dom-&gt;getElementsByTagName('BITRATE')-&gt;item(0)-&gt;textContent



This is in the code at least five times (with different tagname). You could create a function (whose parameter is the tagname) to remove the duplication.