Hello,
I am new to all PHP and MYSQL things, I was wondering if someone could help me make a script that shows how long a character has been online in a game. Here is an example(this example is for another world but its the same game) http://www.pskonejott.com/pskonejott/onlin.../trimera_20.php
This example uses http://www.tibia.com/statistics/?subtopic=...e&world=Trimera
I would like to make a script that uses http://www.tibia.com/statistics/?subtopic=...line&world=Nova
I am very willing to learn! Please help me! I really want to make a script for this!
This was posted by the guy who made the example I showed(I dont understand much of it)
"It’s really not hard to do, the tricky bit is parsing the http://www.tibia.com, Who Is Online list. It just takes 1 regular expression, the one I came up with is $list = ereg_replace("()?[^>]*.", ".", $list);
After you’ve got a mirror of the online list in a MySQL database it only takes an hour or 2 to actually write the online timer, even for someone with very little experience in PHP and MySQL. As I said, I went from knowing mo PHP/MySQL to producing this in about 2 days. You couldn’t just take my script and upload it and expect it to work anyway, you would at least need an understanding of how it works and how to install it."
Last edited by killabozz; 07-08-2005 at 09:53 AM..
Reason: Forgot the links
|