Slide 4.g: Programming Exercise I: a simple on-line message board
Slide 5.a: Scripting
Home

Using PHP


  1. Create a PHP Script such as ~/public_html/test.php.

  2. Open the PHP Script. Open the paths to the PHP scripts to let the browsers access them by using the command chmod:
      gandalf> chmod 711 ~/../userid
      gandalf> chmod 711 ~userid/public_html
      gandalf> chmod 711 ~userid/public_html/*

  3. View the Execution Results from the PHP Script. You can then check the execution results of your PHP scripts on the browser. For the example of PHP script ~/public_html/test.php, the result is located at:
         http://people.aero.und.edu/~userid/test.php
    However, you are not able to view the PHP source on the browsers because PHP is a server-side language.