| CS 199 | Willamette University | Spring, 2019 |
|
Programming in PHP, Databases with MySQL, and Web Applications |
||
Much work for this course will involve creating and storing Web pages, style sheets, and other files. In practice, this activity will likely involve at least three different computers:
A computer (e.g., in Room 202 of Ford Hall, or your own laptop) for creating and editing materials.
A university storage server for the long-term storage of your materials.
A university Web server, established for this course, that will allow display of your files in Web browsers and will also run behind-the-scenes work to support PHP programming and a MySQL database.
This Web page describes setup procedures for your use of each of these environments. Instructions are organized into three main parts:
Setting up a local machine as a work environment
Work through this course will require that you have substantial access to directories and files on the Mac Desktop. The following steps are strongly encouraged:
Click on the "Finder" icon (the square, smiling face on the Dock, likely at the bottom-left of your screen).
Move the mouse to the listing of directories and files for your account.
In this course, we will want to edit text directly—without the editor adding material to what you type, and without the translation of simple characters to something that might look more elegant (but not function properly). Although TextEdit can work well, its settings require adjustment to meet the purposes of this course. Overall work involves two main steps:
A TextEdit Window Icon already may appear in the Dock at the bottom of the screen. If not:
Adjusting settings with TextEdit
Although we will develop materials on a Mac Workstation in Ford 202 (or on our own laptop or desktop computes), we will want to save these materials over the full semester, and we will want to display selected materials on the World Wide Web. These interests require that we copy our local materials to a storage server and to a Web server, run by Willamette University. Fortunately, access to both servers is similar:
Click on the "Finder". When the word "Finder" appears at the top of the screen,
smb://netfiles.willamette.edu/yourusername
where you type your Willamette login name in place of yourusername.
Follow the same steps with the address, smb://cs-199.willamette.edu/www
The process on Windows is quite similar to that for a Mac, except that the relevant addresses use back slashes:
\\cs-199.willamette.edu\www
With these drives available, typically work for this course will involve these steps:
[optional] Copy an earlier version of a file from your storage server directory (smb://netfiles.willamette.edu/yourusername) to your local working directory (e.g., CS199).
Use TextEdit to [create or] edit your file on the local machine.
When a Web page or other file is ready for testing on the Web, copy the file to the Web server (cs-199.willamette.edu/www).
Iteratively, check the Web server to determine how the materials are working.
When development work is done for this session, copy the current version of the local file to your storage server account. (Placing your current version in storage will allow you to do further editing from any machine on the Willamette campus.)