Well basically you would place the script to the cgi-bin directory and set its execute and read permissions. Then make a HTML page with the form. The action attribute of the form should be the URL of...
Then I'd hook the deleting all invalid sessions to requests: Whenever a request comes, before anything else is done, delete the old sessions. You may want to store the last time the check was done...
I would set up a cron job every minute that will delete all sessions with mod time older than 15000ms. And of course with each request, actualize the session mod time. Where is the catch? Or is there...
one solution could be (assuming the users to remove are in @users_remove array) to replace the loop with:
LINE:
foreach my $line (@file_lines) {
foreach my $user_remove (@users_remove) {
...
To me, it looks like your first regexp substitution wipes out the whole content of $line. But it's hard to tell without knowing what's in the @file array.
Well, without more context, it's difficult. I'd need to see what's in the a and mnu1 variables. I'd suggest avoiding the use of global variables and if your project is not tiny and you need not save...
Check what scripting language your hosting program includes. If none, then you can use an external service, there should be plenty. Just google around.
You do it this way: Create a string representation for the current filter (like the value of the option from the select tag), then store that to the fragment part...
Well, my first step would be to think of the data structures that would represent the state of the game. The game is represented by a field of 7x7 cells. A cell can be free, destroyed, occupied by...
Well, to list a directory should not be a problem. The glob function should help you with that. To download a directory, I'd probably just zip it and stream the zipped thing to the client.
Heh :-) Yes. The sorting function is a bit messy, admitted. It sorts so that it is really "merged" from the two files. To sort it alphanumerically, it only gets simpler: just remove the sorting...