Forum Moderators: coopster
I downloaded a PHP script that allows me to stream music on demand via a web interface. It generates a .pls file with the path to my server and the command to start streaming a song.
The problem I'm having is that it is not sending the correct URL. When I look at winamp it says this:
you can see where the URL is missing, but I don't know why it's doing this. I asked on the MP3 Toolbox forums and one of the admins said this, "the pls script needs access to the HTTP_HOST environmental variable in php, so if your web-server is not passing that then mp3 toolbox will not be able to know what domain to put in the PLS file."
Now I know nothing about PHP, so I have little to no idea what he is talking about, and in turn I have no idea what to do.
This probably sounds really sloppy and doesn't describe the problem as well as it should be described, but to be honest, I don't know what else to say without someone asking me for any particular information. So if anyone can help me with the information I have provided, I would REALLY appreciate it, and if you need any particular piece of information PLEASE do not hesitate to ask me for it.
Thank you.
Thanks again!
(I just realized that kind of sounds sarcastic, but I'm wasn't trying to be sarcastic at all)
oh btw, here is one of the commands in the php file if it helps at all (this is after I replaced HTTP_HOST with SERVER_NAME)
$file_stream = 'http://'.$HTTP_SERVER_VARS["SERVER_NAME"].''.$PHP_SELF.'?cmd=radio'.$authpoint;
$file_stream = 'http://'.$_SERVER['SERVER_NAME'].':8080'.strip_tags [php.net]($_SERVER['PHP_SELF']).'?cmd=radio'.$authpoint;
A bigger concern is if $PHP_SELF worked before. That means you have register_globals [php.net] turned on in your server configuration.