ob_start(); include('class.gzip_encode.php'); ?> We run a fair number of nifty features on this server which aren't usually available, such as search engines and statistics packages, and if there are any services that you'd like to use with your pages which we don't have, please just email the WebMaster with details and we'll have a look at adding them.
.htaccess
in the
directory that you want to protect. This is entirely controlled by you. Some
details on how to set this up can be found at Apache Week: Using User Authentication. You may need to ask the
WebMaster for help in setting up the files.
Hits counter using PHP scripting. To add a counter to your own HTML, just embed the following PHP script;
<?include "c1.phtml"; counter(5);?>
This example counter has been viewed times.
Last modified time string can be added to pages, and uses the time/date stamp of that HTML file, rather than relying on you to update the date string by hand each time you modify the page. Try adding the following PHP command;
<?echo Date("H:i d/M/y", getLastMod());?>
Which was last modified at .
There are obviously much more impressive things you can do with PHP, but the above short examples show how easy it is to get started with it. See the PHP pages for full documentation.
Note! That because these are server-side scripts, you can't test them out locally before uploading them to the server (which is what you might normally do). The scripts will just appear as normal text, or not appear at all if you load the pages off local disc. Also, don't edit the pages using "View source" or similar - that will give you the HTML output by the PHP script, not the PHP itself. To edit a page that uses PHP, you must first download it off the server using FTP.
Source code & documentation for many of the scripts we use at this site is now available from PHP scripts.
Go to Moving WWW pages to a new site or Index new gzip_encode(); ?>