Preface


This book covers the design and development of Web applications involving server-side programming for computational tasks, or, more importantly, access to databases and files on the server computer. Two sets of tools are featured: the open-source middleware system called PHP and the database management system MySQL, and the Microsoft Corporation middleware product ASP (standing for active server pages, not application service provider) with JavaScript as the scripting language and the Microsoft Office Suite database management system (DBMS) Access. Both PHP and ASP produce HTML that is displayed on the client computer. The Structured Query Language (SQL) is used in both systems for interaction with the databases.

The book was written with the idea that readers would attempt to recreate the coding examples. To run these examples, you need access to a server computer to which you are allowed to upload and run middleware programs, or you need to turn your own computer into a server. Appendix A, “Running ASP and PHP Scripts on Your Own Computer,” provides instructions on installing server software (including MySQL and PHP) on a computer running Windows XP Professional. It is beyond the scope of this book to cover how to operate a server computer, although some hints are provided as to how things are done at our institution where we run PHP, ASP, MySQL, and Access on a server running Windows NT and Apache. Similarly, the book does make note of issues you will need to clarify with the people we call your server administration. The capability to upload and run PHP or ASP files and access databases is not included automatically in typical Internet service provider (ISP) contracts. You might need a special contract to support Web hosting services.

The book also features the use of diagramming techniques for the design and documentation of applications. These include entity-relationship diagrams, process diagrams, and storyboards. The reader is encouraged to spend time on this part of the material and not just jump to the coding sections. Tools exist for creating these diagrams in various software engineering packages. However, you can sketch the diagrams by hand or use the drawing facilities in a word processor such as Microsoft Word.

The book’s coverage of SQL, regular expressions, and the stand-alone use of MySQL and Access has applicability outside of the use of these technologies and products on the Web.

The assumption in the text is that you will be creating the databases “from scratch.” In the real world, a database for your application probably exists and is in use in a non-Web implementation. Development will involve creating a small database for the initial testing. The final deployment of the Web application might involve a batch operation in which an existing database is converted for use on the Web. It is important to know how to define and create a database and how to modify the database when necessary.

Additional Notes to Teachers

Most of the material in this book is the topic of a one-semester course at Purchase College called Creating Databases for Web Applications. The prerequisite for the course is a course in HTML and JavaScript. Students are encouraged to have an additional course in programming. The workload includes homework assignments on regular expressions and the diagramming techniques, presentations by student teams on the shopping cart and quiz show applications, and a project involving a database, which the students define for themselves. The project can be done by teams or individuals. The students are both undergraduates and students with degrees, many working professionals. The student responses to the offerings of the course have been positive, although students do say that the work is challenging. The format of the midterm and final is open books and open notes.

The students have the exclusive use of a server just for this course, and student technical assistants maintain the server. Although Appendix B, “About the CD-ROM,” contains instructions for installing the server software on local computers, we recommend the use of a remote server with students using a program such as ws-ftp. This serves to reinforce the notion that the code is executed on the server. It also avoids the complexities of the installation process.




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