- Joined
- Nov 15, 2007
- Messages
- 854
- Solutions
- 10
- Reaction score
- 389
- Location
- Santiago, Chile (Australian)
I would like a page that will display the otserv admin logs.
Would this work? If not, care to help me out?
Would this work? If not, care to help me out?
Code:
<?PHP
$content = file_get_contents("directory/to/server/data/logs/GM soandso.txt");
if($content != FALSE)
$main_content .= $content;
else
$main_content .= 'Can not load file <b>GM soandso.txt</b> or file is empty.';
?>