Categories
Tags → Php Code Snippet

Flip a Coin

Easily make a quick random choice between two options. This php script works by seeing if the current server time seconds is even or odd. The code snippet also extends the basic principle to let you flip a 3-sided coin (for choosing among 3 options)....
DETAILS

Mail on 404

A simple snippet of php code to insert in your custom 404 error page. It will send an e-mail when a visitor encounters a 404 page and certain conditions are met. The tutorial explains how the script works and where to insert the code.
DETAILS

directory index

A short PHP code snippet that will print out a given directory index.
DETAILS

alt rows

alt rows is a simple PHP code snippet demonstrating how to do alternating table cell colours.
DETAILS
©2003-2008 jCay.com