EOSERV Forum > Lounge > PHP trouble[RESOLVED]
Topic is locked.
Page: << 1 >>
PHP trouble[RESOLVED]
Author Message
Post #64739 PHP trouble[RESOLVED]


for the function Online, it wont set up the HTML for some reason. The parser does for some reason though : /

Here - Click the server status button in the link. It comes up in some error, anyone got a solution?


<?php
$status =  GetServerStatus('wildarena.no-ip.org',8078)
$status2 = GetServerStatus('wildarenah2.no-ip.org',8078)

function Online($string,$stringsite) {
print<<<eof
<html>
<head><link rel=stylesheet type="text/css" href="styles.css"></head><body>
<h2>$stringsite - Server Status : $string</h2>
<h3>Sorry if the server is not up. If it isn't Check the other host ip. It just might be up.</h3>
<h2/></h2>
</body>
</html>
eof;
}

 

function GetServerStatus($site, $port)
{
$status = array("OFFLINE", "ONLINE");
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
if (!$fp) {   
   Online($status[0],$site);
} else 
 {
    Online($status[0],$site);
 }

}
print<<<eof
 <html><head><link rel="stylesheet" type="text/css" href="styles.css"></head><body><center>
eof;

if($_GET['query'] == "serveronline1") {
 GetServerStatus($status);
}
if($_GET['query'] == "serveronline2") {
 GetServerStatus($status2);
}
print "</center></body></html>";


?>

 

 

 

 

 

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
14 years, 8 weeks ago
Post #64749 Re: PHP trouble[RESOLVED]

The website is down...

14 years, 8 weeks ago
Post #64778 Re: PHP trouble[RESOLVED]


yeah dns is changed :P - Here

dns host sucks and doesnt update p.s. im waiting for this host to come up. If it isnt then just go to my ip : 65.24.180.108 

 

trying to get a domain :/

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
14 years, 8 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Lounge > PHP trouble[RESOLVED]