Help needed here, should b simple!

Hello to the community first,

Ok heres my pb. I’ve got a server running @home and am trying to make a flash movie for my friends to check if its online or not (the server) using a simple php script.

Here’s the php script i use :

 <?php
//Web Server Status v 1.2, Copyright 2002 By Ryan Schwiebert, visit list($addr,$port)= explode (':',"$link");
if (empty($port)){
$port = 80;
}
//Teste la connexion au serveur
$churl = @fsockopen(server($addr), $port, $errno, $errstr, 20);
			 if (!$churl){
				$status = "up";
				 }
			 else {
				 $status = "down";
 
 
	}
function server($addr){
		 if(strstr($addr,"/")){$addr = substr($addr, 0, strpos($addr, "/"));}
		 return $addr;
}
?>

So in my flash movie if want to go to image 35 if its up and to image 40 if its down, simple hey ? but i just cant do it.

Here’s what i’ve put as an action :

 if ((loadVariables ("check_status.php?link=xx.xx.xx.xx", "this", "GET")) == "up"); // start the load itself
{
gotoAndStop(35);
}
else
{
gotoAndStop(40);
} 

ok but ti doesnt work, help is needed, thanks for your support