Exercises, Questions, and Projects


  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.




Creating Database Web Applications with PHP and ASP
Creating Database Web Applications with PHP and ASP (Charles River Media Internet & Web Design)
ISBN: 1584502649
EAN: 2147483647
Year: 2005
Pages: 125
Authors: Jeanine Meyer

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net