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
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
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
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
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