Archive

Archive for the ‘PHP’ Category

Using SSL Authentication on a non-SSL website

April 5th, 2008

The task is to provide a secure login on a website which doesn’t necessarily have any other secure content. If you have an SSL certificate for your webserver you can use SSL just for the login to reduce the traffic going over SSL. Read more…

Christopher PHP

Ant for web developers

April 2nd, 2008

I just spent the last day configuring an apache ant script to automate some tasks in our development environment and I figured I would share some of what I learned. Read more…

Christopher DHTML/JS, PHP

A PHP Redirection Script

December 8th, 2007

This script is intended to be used as an apache 404 error page. When an html document is not found, it will try to find the same document with the php extension, otherwise it will redirect the user to your home page. Save this script as redirect.php and create a file called “.htaccess” in your root directory with the following line: ErrorDocument 404 /redirect.php. Any time a user requests a missing file it should redirect them appropriately.
Read more…

Christopher PHP

Last Modified PHP Tag

December 8th, 2007

Here is another quickie. This tag will add the date a file was last modified to the bottom of your page so guests will know how recent the information is.
Read more…

Christopher PHP

A basic PHP hit counter

December 8th, 2007

The following is a very basic PHP hit counter I wrote some time ago. It uses a browser cookie to prevent the count from increasing by the same user over a short period of time.
Read more…

Christopher PHP