in html page i have script:
<script type="text/javascript" src="player.js"></script>
<head>
<script>
$radioURL = "90.100.100.10";
$radioPort = "8000/xxx;
</script>
</head>
....
in javascript(player.js), i have:
//get current song
$.ajaxSetup({ cache: false });
var dataString = {
'currentradiourl' : $radioURL,
'currentradioport' : $radioPort,
};
$.ajax({
type: "POST",
url: "song.php",
data: dataString,
success: function(data)...
and finally, in php file (song.php) i need to replace code, and call variable from script from html page or javascript file:
$t = new streaminfo('http://90.100.100.10:8000/xxx');
with
$t = new streaminfo('http://'+$radioURL+':'+$radioPort');
Please help!!!... how to proceed?