BEWARE: your web browser may be out-of-date...

Note: Web pages can only be hosted on Darkwing and Noether.

(Darkwing ONLY) PHP Location:

#!/usr/local/bin/php
This needs to be the first line on any PHP document hosted on the Darkwing server. Skip this if your page is going to be on noether.

Include Header:

If you are on DARKWING you need the following:

<?php { include('/home2/math/public_html/includes/top.html'); } ?>

If you are on NOETHER you instead need the following:

<?php { include('http://math.uoregon.edu/includes/top.html'); } ?>

This includes the header, which contains the proper HTML declarations, main navigation bar, CSS declaration, and some other goodies that you likely don't need to worry about.


Sub-navigation (somewhat optional):

<div id="subnav">
<strong>Active Page</strong> | <a href="">Other Link</a><br />
<h2>Title</h2>
</div>

From <strong> to </a> is optional. The rest is required to maintain congruency with the rest of the site.

Table for sidebar (optional):

<table width="665" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 515px">
<p>Body Text</p>
</td>
<td id="sidebar">
<ul>
<li><a href="">Link List Item</a></li>
</ul>
</td>
</tr>
</table>

Body text and sidebar table cells are pretty self explanatory. Don't forget your paragraph tags (<p> and </p>) in the body column. Lists, links, images, pretty much any standard html is fair game here. Headers within your page should begin with <h3>. Sidebar can use either an ordered or unoredered list, or no list at all just plain text if you want. Again, don't forget the paragraph tags for plain text, and images, links, whatever is fair game.

Include Footer:

If you are on DARKWING you need the following:

<?php { include('/home2/math/public_html/includes/bottom.html'); } ?>

If you are on NOETHER you instead need the following:

<?php { include('http://math.uoregon.edu/includes/bottom.html'); } ?>

This includes the footer, which contains the proper HTML declarations, copyright, and graphical link back to the UO main site.

Permissions (Darkwing ONLY)

In addition to requiring the PHP location declaration, Darkwing also requires that PHP files be executable. This can be accomplished a few different ways, via the command line, or a graphical program such as Fugu.

To use the command line, log into darkwing, find the file (in your public_html directory), and type chmod +x filename.php. Here is an example:
chmod +x index.php

Or using Fugu, get information of the PHP file, and change the permissions accordingly. Here are some illustrations from Fugu:
get info
permissions