• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows Empty PHP file request

Demnish

Tibian Hero
Joined
Sep 28, 2011
Messages
402
Solutions
2
Reaction score
65
Location
Sweden
I'm Using Nicaw AAC.

I'm looking for an .php file WITH basic code, so I can just fill it in "fields" so that text or images of my choice will show as their own page on my website, Server Information is a good example.


Thanks in advance.
 
Last edited:
so that question is quite stupid, is just change the .txt for .php, that's why i thought he can't see the format of the files
Dude, tell me one person who doesnt know how to create a .php file..

What I was asking for is a .php file with basic code so I can just fill it in and then it will create a page on my website with the text or images of my choice, like Server Information for example.
 
This sort of depends on how your website handles pages and you'd have to create a link to the website on your index.php?

How about an example page?

Otherwise:

PHP:
<?php

echo "<b>Server Information</b><br />Client: 10.1<br />"; //you can use HTML to tidy up your text
echo "<img src=\"images/smiley.gif\">"; //images

?>
 
Last edited:
This sort of depends on how your website handles pages and you'd have to create a link to the website on your index.php?

How about an example page?

Otherwise:

PHP:
<?php

echo "<b>Server Information</b><br />Client: 10.1<br />"; //you can use HTML to tidy up your text
echo '/images/smiley.gif'; //images

?>
There won't be any image there, it's just raw text.
 
lol... this guy is asking for a template...

im no good with php but you can just google for a template and find one that you like... search for something like "basic php homepage template" or whatever floats your boat

seriously though... you will need to learn from the template to be able to put stuff where you want it. dont expect to download the perfect one that you want
 
serverinformation.php

Code:
<?php
/*
    Copyright (C) 2007 - 2009  Nicaw

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
include ("include.inc.php");
$ptitle="Home - $cfg[server_name]";
include ("header.inc.php");
?>
<div id="content">
<div class="top">Home</div>
<div class="mid">
<fieldset>
<center>
<?php
require_once('class/simple_bb_code.php');
$bb = new Simple_BB_Code();
echo $bb->parse(file_get_contents("serverinformation.inc"));
?>
</center>
</fieldset>
</div>
<div class="bot"></div>
</div>
<?php include ("footer.inc.php");?>
make a file named serverinformation.inc
for links:
Code:
[url=xxxxxxxxxxxxxxxxxxxxx]Download Client[/url]
images is jus
Code:
 [img] IMG LINK [/img]
bold font is
Code:
 [B] TEXT [/B]
change color;
Code:
 [color=xxx] TEXT [/color]
pretty much jus type whatever you want and customize it with tags.
Code:
 [i]xx[/i]
is italics,
Code:
 [U] xx [/U]
is underline etc

don't forget to include it in navigation.xml
Code:
<item href="serverinformation.php">Server Info</item>
 
Back
Top