| HOME | Games | People | Legal | Projects |
| Quotes | Places | Organizations | Things | Résumé |
The PHP source for all the pages on http://www.pungent.org, as well as the pages on http://ladb.unm.edu/ and http://larr.unm.edu/, can be viewed by prepending '/src' to the filename portion of the URL.
Adding '/src' to the path changes the behaviour of the web server, causing it to display the source code (with color syntax highlighting) instead of interpreting the source code as it normall would. This is because I've changed the Apache configuration by adding these lines to access.conf:
<Location ~ "/src"> AddType application/x-httpd-php-source .php .inc DirectoryIndex -NONE- </Location> Alias /src/ "/home/owen/pungent/htdocs/"
For instance, instead of viewing http://www.pungent.org/code/index.php, you can view http://www.pungent.org/src/code/index.php to see the PHP source.
Of course, looking at a directory, like http://www.pungent.org/src/code/ will show a list of files instead of the index.php file, so you can see which files are available.