CSCI 311 Setup, Code Standards, and Tech tips

This file ain't pretty, but it gets the job done. Plus it is technically correct, which is the best kind of correct.

Contents of this file

Making public_html searchable/visible

To allow your public_html to be searchable/visible on the internets:

  1. navigate to your home folder (cd ~)
  2. set the home directory to be world/group searchable (chmod go+x ./)
  3. set the public_html directory as world/group searchable (chmod go+x public_html )

Viewing php files on campus

To access your php-based web pages on campus (and likely not via wifi)

This assumes:

  1. USERNAME is replaced by your username
  2. That the info.php file is in the following location:
    ~/public_html/pathToFile/

Directory and file permissions

Here are permission settings you'll need to properly serve files:

Viewing your php files off campus

In order to view your php served files off campus, you'll need to set up ssh forwarding.

Instructions on how to do this are found here: SSH Forwarding

Highlights:

Viewing PHP errors

To view php errors (in the lab)

mysql database setup

CSCI 311 code standards

For full marks all of the following code standards must be achieved in all submissions: