Jump to content

Parse the file and display the results


aztech

Recommended Posts

I have a program which have written with c+ +. This program is a generic server stats program for all Silkroad versions. ( Silkroad = MMORPG game like WoW ). " So if you have a website, you can upload the file via FTP to your own directory and write a simple PHP script or ASP script to parse the file and display the results. Or, you can post the data via PHP via a web URL. "

I need to make this what i write that write the results.

 

This write the following data:

Server Id
Server Name
Current Players
Max Players
State (1 = open, 0 = check)

For example:
2
220
Zeus
354
2500
1
221
Venus
539
2500
1 

 

And save this data to any.txt file.

 

Here is the site:

http://www.error-soft.net/forum/prvsro.php

 

u need to se the server stats :

Server Name Players State Status

Total Capacity 2059 / 6000 [34%]

ZSZC(Fire) 0 / 2000 Empty Offline

ZSZC (Water) 2059 / 2000 Full Online

ZSZC (Retro) 0 / 2000 Empty Offline

 

i have the program what check the server and write this information to text file, but i do not know how can i parse this information like this website.

Link to comment
https://forums.phpfreaks.com/topic/228728-parse-the-file-and-display-the-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.