# Help needed here, should b simple!

**URL:** https://forum.kirupa.com/t/help-needed-here-should-b-simple/112020
**Category:** Uncategorized
**Created:** [June 2, 2004, 5:23pm UTC](https://forum.kirupa.com/t/help-needed-here-should-b-simple/112020 "2004-06-02T17:23:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![neeeko](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@neeeko](https://forum.kirupa.com/u/neeeko)
#### Post date: [June 2, 2004, 5:23pm UTC](https://forum.kirupa.com/t/help-needed-here-should-b-simple/112020/1 "2004-06-02T17:23:54Z")

</div>

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 :

```auto
 <?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 :

```auto
 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
