|
Title: How to generate HTML output to single file? Post by: Turek 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?
Title: How to generate HTML output to single file? Post by: piramida 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 :) there's quite a few things that need extension in templates, this one is very easy to implement though :) Title: Re: How to generate HTML output to single file? Post by: achiever 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, -_- achiever Title: Re: How to generate HTML output to single file? Post by: piramida 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.
Title: Re: How to generate HTML output to single file? Post by: achiever 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. Title: Re: How to generate HTML output to single file? Post by: achiever 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? Title: Re: How to generate HTML output to single file? Post by: piramida 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. Title: Re: How to generate HTML output to single file? Post by: achiever on June 19, 2007, 11:50:32 PM thks for the reply dude
i m looking forward for ne developments eagerly achiever
► SLF - Server List Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved. Hosted by mkHS. |