Design a new application involving reading and appending records to a file. Make your application have at least three fields, separated by a character other than a comma.
Try to read a remote file using PHP or ASP. You need to put in a complete file path. Note: on our systems, this worked in PHP but not using ASP.
Redo the scripts in this chapter, changing the PHP script to read in a line at a time using the fgets function, and changing the ASP script to use the ReadAll method.
Go back to the state capital quiz application and enhance the application to keep score. You would need to ask the player for a name (“handle”). You also need to include a new command to end the session, computing the score and adding a record consisting of name, date, and score to a file. You also need to have a way to present the scores.
Using the basic scripts provided in this chapter or what you have done in the previous exercise, produce scripts that just keep the five top scores. You need to order them and then only add a score if it is justified as being in the top five.
Go online and find out ways to upload files using ASP. Note that some products that cost money do provide services such as additional security.