► SLF - Server List Forum
Welcome, Guest. Please login or register.
December 05, 2008, 02:27:57 PM

Login with username, password and session length
Search:     Advanced search
7170 Posts in 456 Topics by 6943 Members
Latest Member: ssoofftt
* Home Help Login Register
► SLF - Server List Forum  |  aGSM v. 2.xx  |  aGSM FAQ (moderated)  |  Topic: How to generate HTML output to single file? 0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: How to generate HTML output to single file?  (Read 3076 times)
Turek
*
Offline Offline

Posts: 1



WWW
How to generate HTML output to single file?
« on: March 21, 2004, 01:09:36 PM »

Subj. I need to generate HTML output to one file. Is there any way to do so?
Logged

Pardo's First Postulate: Anything good in life is either illegal, immoral, or fattening.
piramida
Administrator
*****
Offline Offline

Posts: 1070



WWW
How to generate HTML output to single file?
« Reply #1 on: March 23, 2004, 01:53:09 AM »

There are ways to do that; can you be more specific how you see it? List of servers with their stats below? What server technology? Asp? Php? Pure html? With any dynamic tech like PHP or ASP you can "include" server stats pages in your main list.

We can fix the generation system so that g_inc_params and g_inc_players are permitted in net_server.gtp, too, so that you can just create a generic template; and don't create per-server templates then Smiley there's quite a few things that need extension in templates, this one is very easy to implement though Smiley
Logged
achiever
*
Offline Offline

Posts: 10


Re: How to generate HTML output to single file?
« Reply #2 on: June 13, 2007, 03:38:09 PM »

can u plzz tell me exactly what should i do to get all the information i just 1 single html file (pure html), if it can be done as u said very easily.

and also the in formation should be overwritten on refersh of the servers in the same file.

help is deeply appriciated,  smiley
achiever
Logged
piramida
Administrator
*****
Offline Offline

Posts: 1070



WWW
Re: How to generate HTML output to single file?
« Reply #3 on: June 13, 2007, 06:27:18 PM »

It is still not possible, as it would require template system extension, you can do this right now by doing a cycle in php and including all the staticaly generated server info stubs in the main page.
Logged
achiever
*
Offline Offline

Posts: 10


Re: How to generate HTML output to single file?
« Reply #4 on: June 14, 2007, 10:48:41 AM »

well i m incapabile to make ne such thing as u say, can u just put it together for me.
sorry for being such demanding :-(

thanks for help,
achiever.
Logged
achiever
*
Offline Offline

Posts: 10


Re: How to generate HTML output to single file?
« Reply #5 on: June 18, 2007, 12:16:56 PM »

hi,

i have done some changes in the .bat file and .gtp and now its not making different folder on every new refresh.

but i m still not able able to merge all the files in to 1 single html file.

i need ur help there desperately,
thanks,
achiever.

p.s: now that its stoped making new folder on every refresh, if the number of servers found on 1 search is 4 and on the next search it is 2 then the files which were made during previous search remains i.e i have 2 extra files can u tell me how delete it automatically?
Logged
piramida
Administrator
*****
Offline Offline

Posts: 1070



WWW
Re: How to generate HTML output to single file?
« Reply #6 on: June 19, 2007, 10:40:15 PM »

you'd need an utility like http://www.techeez.com/download/obslt10.zip and then add a line to your .bat file generator, something like

Code:
<path_to>obsolete -s 5 minutes <pattern> c:\path\where\files\are\generated

You will have to replace path_to with a path to the utility and <pattern> with a pattern you will be deleting. It will delete all files older than 5 minutes at the location you specify which match the pattern. You may want to test what you'll be deleting first by using -n instead of -s.

Merging all files into one right now is not possible, you can only create a .php file for use in webserver which will read all individual server files and display them on one page. I won't give you code for that, try google, since it involves many things totally unrelated to agsm.
Logged
achiever
*
Offline Offline

Posts: 10


Re: How to generate HTML output to single file?
« Reply #7 on: June 19, 2007, 11:50:32 PM »

thks for the reply dude

i m looking forward for ne developments eagerly

achiever
Logged
Pages: [1] Go Up Print 
► SLF - Server List Forum  |  aGSM v. 2.xx  |  aGSM FAQ (moderated)  |  Topic: How to generate HTML output to single file?
Jump to:  

Powered by MySQL Powered by PHP ► SLF - Server List Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved. Hosted by mkHS.
Valid XHTML 1.0! Valid CSS!