Compare a client's directory to...

admin

Administrator
Staff member
Hello all,

Sorry if this type of question has been answered before, but I did not see it anywhere and the searches came up empty.

Here is what I am trying to do.

1) I have a text file on my webserver for each day of the week with the files needed to play on my game server for each day.
2) I want a user to be able to select his/her half-life directory from one of my webpages.
3) I want the script to seach the <modname> folder in the user's half-life directory that I specify in the script, and then compare the results of the search to the correct text file on the server.
4) Once the compare is done, I want the page to show the user what files he/she is missing and build a downloadable file that contains the needed files, or at least builds a page showing download links for the missing files based on my mySQL database.

I guess what I am thinking about here is a "windows update" kind of functionality for my regular players on my half-life game servers. I run over 110 custom maps on one server alone, and I thought it would be nice to build a button, on my custom status window for the server, that would allow the new user to grab only the map downloads they need instead of downloading 11 mappacks totalling over 300MB+.

Anyone have any clue how to do something like this? I have tried doing this with asp and php. I got farther on ASP than php, but I am now running linux on my webserver, and the asp doesn't work right anymore. I was told Javascript is the way to go, at least for the client directory search functions.

I appreciate any help that you guys could offer,
Jason (CB)
<!-- m --><a class="postlink" href="http://www.halflifemapping.com">http://www.halflifemapping.com</a><!-- m -->
 
Back
Top