Thread: Players Online Via Website (No MYSQL)

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34
  1. #21  
    Registered Member rockarocka's Avatar
    Join Date
    May 2010
    Posts
    978
    Thanks given
    27
    Thanks received
    7
    Rep Power
    20
    Quote Originally Posted by Jili X I View Post
    Use grammar so I can understand you, please.
    http://www.rune-server.org/runescape...eands-php.html

    And sorry aboute grammar..
    Reply With Quote  
     

  2. #22  
    The One & Only

    Norcotic's Avatar
    Join Date
    Jul 2011
    Age
    31
    Posts
    2,320
    Thanks given
    415
    Thanks received
    285
    Rep Power
    1270
    Nice Release might use this when I get my server up
    Reply With Quote  
     

  3. #23  
    Registered Member rockarocka's Avatar
    Join Date
    May 2010
    Posts
    978
    Thanks given
    27
    Thanks received
    7
    Rep Power
    20
    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."; 
    ?>
    Reply With Quote  
     

  4. #24  
    Registered Member
    Join Date
    Jun 2012
    Posts
    357
    Thanks given
    16
    Thanks received
    29
    Rep Power
    31
    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 :/
    Reply With Quote  
     

  5. #25  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    Quote Originally Posted by RatTheStack View Post
    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 :/
    Use a php file.
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  6. #26  
    Registered Member
    Join Date
    Jun 2012
    Posts
    357
    Thanks given
    16
    Thanks received
    29
    Rep Power
    31
    Quote Originally Posted by Tyluur View Post
    Use a php file.
    I added a php file called counter.php and added that to it, and then called it in the index.html but nothings showing?


    Code:
    <link href="/counter.php" rel="stylesheet" media="screen" />
    Reply With Quote  
     

  7. #27  
    Server developer


    Join Date
    Jul 2010
    Posts
    881
    Thanks given
    265
    Thanks received
    55
    Rep Power
    94
    It worked flawless! If anyone needs it(or doesn't know how to do it), e-mail me; [email protected]
    Reply With Quote  
     

  8. #28  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    Quote Originally Posted by klaasvaakjes View Post
    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.";
    ?>
    Reply With Quote  
     

  9. #29  
    Registered Member
    Join Date
    Jul 2013
    Posts
    96
    Thanks given
    17
    Thanks received
    0
    Rep Power
    12
    Reupload website files
    Reply With Quote  
     

  10. #30  
    Registered Member trickboy's Avatar
    Join Date
    Dec 2011
    Posts
    356
    Thanks given
    27
    Thanks received
    14
    Rep Power
    26
    Reupload website files bump

    2.25x experience rate, and over 70 quests.
    Reply With Quote  
     

Page 3 of 4 FirstFirst 1234 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Website Players Online [ NO MYSQL]
    By ItsGoml in forum Selling
    Replies: 26
    Last Post: 01-08-2012, 08:05 PM
  2. Players Online -MySQL-
    By Goth Wolf in forum Help
    Replies: 1
    Last Post: 07-04-2009, 01:09 PM
  3. Players online [No MYSQL]
    By PeeHPee in forum Tutorials
    Replies: 34
    Last Post: 09-15-2008, 01:27 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •