A Web-Based Introduction to Programming

Run your samples and coursework files here!

Use these links to view and test your programs:

NOTE: you can also view these files by simply typing the URL directly, for example:

http://localhost/Webtech/coursework/Chapter02/hello.html

Need Help?

Remember to Make Backups!

Make a back up of your work at least weekly to be sure you don't lose code that you have worked hard on! To backup your work, copy your entire Webtech folder to another disk. If you ever have a problem with your working disk, you can reinstall your Web server, then copy your backup Webtech folder to the htdocs folder of your new installation. (Windows users: if you re-install the Web server you will want to rename the new Webtech folder that comes with this installation before copying your backup Webtech folder to the htdocs folder).

How do I work on my coursework files?

Chapter 2 explains this in detail but here are the basic steps to make changes to a file:

  1. Start a text editor
  2. Open the file you want to work on (or create a new file if that's what you want). These files are located in the appropriate folder under your hdtocs/Webtech/coursework folder, or in the Webtech/samples folder of your installation.
  3. Edit the file as needed
  4. Save the file (usually to the same location and with the same file name
  5. Now you can open the file in your Web browser to view your changes. To do this either return to this page and click the coursework link above to navigate to the link to your file, or simply type the URL directly in your browser window, for example: http://localhost/Webtech/coursework/Chapter05/Modify1.html

Return

Need to restore an original coursework or samples file?

Sometimes you may make a number of changes to a file in the coursework or samples folders and then wish you could just start again! Your installation includes two folders named WEBTECH_ORIGINAL_samples and WEBTECH_ORIGINAL_coursework. These folders contain duplicates of the original files that came with your installation. Here two different ways to restore a file from these folders:

  1. Use your text editor to open a file from one of these folders. Then use Save As to save the file to the active samples or coursework folder that contains the file you wish to replace.
  2. Use My Computer to navigate to the folder that contains the original file, then copy this file to the active samples of coursework folder that contains the file you wish to replace. You can then edit the file as needed.

Return

How can get help debugging my code?

Appendix D in the textbook contains a lot of useful debugging hints.

Return

How can I edit this page?

You can edit this file to suite your own purposes. It is located in your Webtech folder and named index.html. You may find it useful to add some notes of your own, or you may want to include more links, for example if you create additional folders (see below).

You can also create additional folders if you want to develop your own work. These can be located under the Webtech folder or directly under the htdocs folder. Note that files that are located outside the htdocs folder will not be available for viewing on the Web server unles you change the default document directory settings.

Return