- Joined
- Sep 20, 2008
- Messages
- 812
- Reaction score
- 1
Hi to all I'm starting to learn php to make my own site now I have problem in include function this is my 1st attempt sorry if this is very noobish XD
here is the pic of my problem
and here is the code
in part here
and this is the code of _stats.php
Maybe someone can help I really search a lot how to fix that but it still it will not appear XD :*:
Thanks
Live Preview : http://louisianz.getmyip.com
here is the pic of my problem
![x103strike - [PHP] include function - RaGEZONE Forums x103strike - [PHP] include function - RaGEZONE Forums](http://i219.photobucket.com/albums/cc227/x103strike/help.jpg)
and here is the code
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>LouisianzFlyff</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style2 {color: #00CC99}
.style3 {font-size: 10px}
-->
</style>
</head>
<body>
<div id="header">
<h1>Louisianz</h1>
<h2>Flyff</h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="index.php" accesskey="1" title="">Home</a></li>
<li><a href="register.php" accesskey="2" title="">Register</a></li>
<li><a href="download.php" accesskey="3" title="">Download</a></li>
<li><a href="/forum" accesskey="4" title="">FORUM</a></li>
<li><a href="usercp" accesskey="5" title="">Usercp</a></li>
</ul>
</div>
<div id="content">
<div id="colOne">
<h2>Server Stats</h2>
<?php
include ('_stats.php');
?>
<h3> </h3>
</div>
<div id="colTwo">
<h2>NEWS</h2>
<p><em><strong>Primitive Element</strong></em> is a free template from <a href="http://www.freecsstemplates.org/"><strong>Free CSS Templates</strong></a> released under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution 2.5 License</a>. The header photo is from <a href="http://www.pdphoto.org/">PDPhoto.org</a>. You're free to use it for both commercial or personal use. I only ask that you link back to <a href="http://www.freecsstemplates.org/">my site</a> in some way. Enjoy :)</p>
<p>Suspendisse potenti. Donec nulla est, laoreet quis, pellentesque in, congue in, dui. Nunc rhoncus placerat augue. Donec justo odio, eleifend varius, volutpat venenatis, sagittis ut, orci. Donec nulla est, laoreet quis, pellentesque in, congue in, dui. Nunc rhoncus placerat augue. Donec justo odio, eleifend varius, volutpat venenatis, sagittis ut, orci. Nullam et orci in erat viverra ornare. Nunc pellentesque.</p>
<p>Sed vestibulum blandit nisl. Quisque elementum convallis purus. Quisque pellentesque semper massa:</p>
<ul>
<li><a href="#">Suspendisse quis gravida massa felis.</a></li>
<li><a href="#">Vivamus sagittis bibendum erat.</a></li>
<li><a href="#">Nullam et orci in erat viverra ornare.</a></li>
<li><a href="#">Suspendisse quis gravida massa felis.</a></li>
<li><a href="#">Curabitur malesuada turpis nec ante.</a></li>
</ul>
<p>Aliquam gravida massa eu arcu. Fusce mollis tristique sem. Sed eu eros imperdiet eros interdum blandit. Vivamus sagittis bibendum erat. Curabitur malesuada turpis nec ante. Suspendisse quis felis. Suspendisse potenti. Nullam et orci in erat viverra ornare.</p>
</div>
<div id="colThree">
<h2>Server info</h2>
<ul>
<li><a href="#">Sed bibendum tellus id</a></li>
<li><a href="#">Vivamus commodo</a></li>
<li><a href="#">Sed bibendum risus atis</a></li>
<li><a href="#">Nulla ullamcorper arcu</a></li>
<li><a href="#">Vestibulum ultricies dui</a></li>
<li><a href="#">Proin a dui non elit</a></li>
<li><a href="#">Praesent utumsan</a></li>
<li><a href="#">In posuere risus ac felis</a></li>
<li><a href="#">Proin facilisis sagittis</a></li>
<li><a href="#">In fringilla aliquet odio</a></li>
<li><a href="#">Quisque sodales arcu</a></li>
<li><a href="#">Nam tincidunt consec</a></li>
</ul>
<h2>ADS</h2>
<ul>
<li><a href="#">Pellentesque consequat</a></li>
<li><a href="#">Morbi condimentum</a></li>
<li><a href="#">Cras tempor pulvinar</a></li>
<li><a href="#">Pellentesque vel magna</a></li>
<li><a href="#">Purus placerat imperdiet</a></li>
<li><a href="#">Duis ultrices pede vel</a></li>
<li><a href="#">Etiam eu libero eget est</a></li>
<li><a href="#">Faucibus fermentum.</a></li>
<li><a href="#">Vestibulum vulputate</a></li>
<li><a href="#">Cras sollicitudin pede et</a></li>
<li><a href="#">Maecenas interdum ante</a></li>
<li><a href="#">Nullam lacinia eleifend</a></li>
</ul>
</div>
<div style="clear: both;"> </div>
</div>
<div id="footer">
<p>Copyright © 2009 LouisianzFlyff. Designed by <a href="http://www.freecsstemplates.org/"><strong>Free CSS Templates</strong></a></p>
</div>
</body>
</html>
in part here
![x103strike - [PHP] include function - RaGEZONE Forums x103strike - [PHP] include function - RaGEZONE Forums](http://i219.photobucket.com/albums/cc227/x103strike/untitled-2.jpg)
and this is the code of _stats.php
Code:
<p align="center"><b>- Login Server -<br></b>
<?php
$fp = @fsockopen("127.0.0.1", 23000, $errno, $errstr, 1);
if($fp >= 1){
echo '<img src=./files/online.png>';}
else{ echo '<img src=./files/offline.png>'; }
?>
<br />
<b><br>- Char Server - <br></b>
<?php
$fp = @fsockopen("127.0.0.1", 28000, $errno, $errstr, 1);
if($fp >= 1){
echo '<img src=./files/online.png>';}
else{ echo '<img src=./files/offline.png>'; }
?>
<br />
<b><br>- Channel 1 -<br></b>
<?php
$fp = @fsockopen("127.0.0.1", 15400, $errno, $errstr, 1);
if($fp >= 1){
echo '<img src=./files/online.png>';}
else{ echo '<img src=./files/offline.png>'; }
?> <br>
<b><br>- Channel 2(PK) -<br></b>
<?php
$fp = @fsockopen("192.168.254.2", 15400, $errno, $errstr, 1);
if($fp >= 1){
echo '<img src=./files/online.png>';}
else{ echo '<img src=./files/offline.png>'; }
?> <br>
<b><br>- Database Server -<br></b>
<?php
$fp = @fsockopen("127.0.0.1", 3306, $errno, $errstr, 1);
if($fp >= 1){
echo '<img src=./files/online.png>';}
else{ echo '<img src=./files/offline.png>'; }
?>
Maybe someone can help I really search a lot how to fix that but it still it will not appear XD :*:
Thanks
Live Preview : http://louisianz.getmyip.com
Last edited: