Nice Release might use this when I get my server up
|
http://www.rune-server.org/runescape...eands-php.html
And sorry aboute grammar..
This is so annoying i don't understeand anyting in php can anyone explain does this is correct?
Code:<?php $fileName = vpn/players.txt"; $countOnline = count(file($fileName)); echo "$countOnline players online."; ?>
If I wanted to add this to my homepage, where would I put this?
<?php
$fileName = /players.txt";
$countOnline = count(file($fileName));
echo "$countOnline players online.";
?>
I've tried it in the index.html and style.css :/
It worked flawless! If anyone needs it(or doesn't know how to do it), e-mail me; [email protected]
I have no idea how to construct whole thing but i color coded what i feel needs to be changed. I got everything to work except the loading of the actual data online, the text file is hosted online and fully updated. I did everything server sided and it writes the data perfectly, i just can't get this php module right. I posted a help thread if you could check it out please.
<?php
$fileName = FOLDNAME/players.txt";
$countOnline = count(file("$fileName"));
echo "$countOnline players online.";
?>
Reupload website files
Reupload website files bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |