PHP server status & information[+rep]
#5

bump!

i tried this way:
Код:
<?php
require "SampQueryAPI.php";
$query = new SampQueryAPI('80.79.113.13', '7777');
$aInformation = $query->getInfo();
?>

<div class="news_holder">
        	<div class="news_top"></div>
            <div class="news">
            <img src="images/news_bulletin.png" alt="" />
            <h1>Welcome to our new website</h1>
            <p>Our website is currently under developement,the login/register system ain't working right now.</p>
            <p>Server updates are up at the forums.</p>
            <p>Regards,<br />Luca Salerino</p>
            </div>
            <div class="news_bottom"></div>
            <!--Please do not remove this copyright-->
			<div class="copyright">Designed by <a href="http://www.zasprexstudios.com/">Zasprex Studios</a> &amp; Coded by <a href="http://www.fredricksw.com/">FredrickSW & Viswanath</a></div>
            <!--Please do not remove this copyright-->
        </div>
        <div class="right_holder">
        	<div class="login_box">
            	<div class="righ_top"></div>
                <div class="right_middle">
                	<img class="login_img" src="images/login_img.png" alt="" />
                    <div class="login_text">
                    <input class="textfield" name="username" type="text" placeholder="Username" />
                    <input class="password textfield" name="password" type="password" placeholder="Password" />
                    </div>
                    <div class="login_btn">
                    <a href="#"><img src="images/login_btn.png" border="0" alt="" /></a>
                    </div>
                </div>
                <div class="right_bottom"></div>
            </div>
            <div class="stats_box">
            	<div class="statsrigh_top"></div>
                <div class="statsright_middle">
                	<img class="stats_img" src="images/stats.png" alt="" />
                    <?= htmlentities($aInformation['hostname']) ?><br />
                    Server: Online<br />
                    Server IP: 80.79.113.13:7777<br />
                    Players: <?= $aInformation['players'] ?> / <?= $aInformation['maxplayers'] ?><br />
                    Mode: <?= htmlentities($aInformation['gamemode']) ?><br />
                    Map: <?= htmlentities($aInformation['mapname']) ?><br />
                </div>
but it wont show anything at the players mode map hostname etc
Reply


Messages In This Thread
PHP server status & information[+rep] - by WardenCS - 14.03.2012, 23:34
Re: PHP server status & information[+rep] - by Laronic - 14.03.2012, 23:36
Re: PHP server status & information[+rep] - by Twisted_Insane - 14.03.2012, 23:46
Re: PHP server status & information[+rep] - by WardenCS - 14.03.2012, 23:57
Re: PHP server status & information[+rep] - by WardenCS - 15.03.2012, 11:55
Re: PHP server status & information[+rep] - by Twisted_Insane - 15.03.2012, 12:34
Re: PHP server status & information[+rep] - by TheArcher - 15.03.2012, 12:42
Re: PHP server status & information[+rep] - by WardenCS - 15.03.2012, 13:25
Re: PHP server status & information[+rep] - by TheArcher - 15.03.2012, 16:55
Re: PHP server status & information[+rep] - by WardenCS - 15.03.2012, 17:17

Forum Jump:


Users browsing this thread: 1 Guest(s)