CSC 436 – Assignment #3
Insructions for Setting up the Your Web Site on the Department Web Server



Your unix account is set up to host web pages in a special directory called:

public_html

Create this directory in your home directory. You can then put all of your php and html files in there. It can be accessed from:

www.cs.uri.edu/~yourusername

To ensure the security of your html and php files, create a file called index.html (or index.php) in the public_html directory and either make it blank, or put in a message of your choice. This will prevent the browser from defaulting to display the contents of the directory. Also, create a subdirectory of your public_html directory that will contain the files for this project. Remember to include the name of this subdirectory when you email Dr. DiPippo with the URL for your project.

You can use the include command to include a file that you want to use more than once. This can be useful for connecting to the database in each php file that must do so. You can find information about this command at:

http://us.php.net/include/

I have updated my Toy Catalog example to use this command for connecting to the database.