23.03.2011, 04:59
(
Последний раз редактировалось SuperS82; 23.03.2011 в 05:33.
Причина: There its in php code for you neat freaks...
)
PHP код:
<?php
$file = "/folder/tlog.ini"; //sets the files location
$f = fopen($file, "r"); //opens the file for reading only
while ( $line = fgets($f, 1000) ) { //loops through the files contents
print $line; //prints the contents to the browser
}
?>
Also @ Steven : He asked for PHP coding not MySQL! Obviously he has his script setup to store all chat into a file (not MySQL) and would like to use that file to display its contents into a web page for live viewing for people that arent in game.
Nice idea, makes your website interactive with your server!