Quote:
Originally Posted by SuperS82
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
}
?>
Let me know if this is what you wanted. If not, I can help you out with what your going for. I think I know what your trying it accomplish.
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!
|
Ok, i got it to sort of work, but it doesnt automatically update. how do i fix this? also, can i have it on a remote pc or does it have to be on the same coputer?