First you will have to excuse my absolute ignorance with php. I just hack around most of the time with the code and it ends up working. The bad thing with that is that I can usually never remember how I did something.
This said...I run a site with a shoutcast server on it. The server is a Windows 2000 machine running Apache 1.3.27 and PHP 4.2.3. I have a script that allows (used to allow) remote DJ's to kick the current stream offline so that they can connect. The script used to work when I had my site hosted by another company. I have since moved it to my home machine.
The script below is how it used to work. Now...nothing happens when I run it. Does anyone have any ideas what I could be doing wrong? Is there some switch I havent thrown in PHP or Apache? Is the script written wrong?
<?
$server="url.com";
$port="port";
$password="thepassword";
$fp = fsockopen($server, $port, &$errnum, &$errstr, 2);
if($fp){
fwrite($fp, "GET /admin.cgi?pass=$password&mode=kicksrc HTTP/1.0\r\nUser-Agent:Mozilla/4.0\r\n\r\n");
}
?>
<META HTTP-EQUIV=REFRESH CONTENT="0;URL=http://www.myurl.com/">
Please...I really need some help here as soon as possible! Any help is appreciated.
Thanks