Php Scripts

For radio station DJ’s or Shows

For radio station DJ’s or Shows

The following script will allow radio station’s website to display the show or dj’s that is currently on air. To use this code make sure your page has .php extention not .html Paste the code... 

Kentico CMS License & 1-Year Maintenance

Kentico CMS License & 1-Year Maintenance

Today, we are announcing an awesome giveaway: a full license to Kentico CMS which includes one-year maintenance/support. Read on to see how you can participate and get a chance to win this awesome prize... 

Display Random Image from a Directory

Display Random Image from a Directory

This script outputs random image from a defined directory. Make sure to change the path to your images directory and also an image to display if directory listing fails. I have found this piece of code... 

Displays a hyperlinked Directory list

Displays a hyperlinked Directory list

Displays a hyperlinked list of all the files contained in a specified folder. A really simple way to have your own directory browser, just drop the file in the folder and it will show an index of all files... 

Displays a random quote on a web page

Displays a random quote on a web page

Displays a random quote on a web page. Quotes are picked from a list that you define. Create a page and call it ( random_quote.php ) or anything you like than add the php include code below to your... 

Display different image each day of the week

Display different image each day of the week

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.  Change the name of the image folder, Images must be named Monday.gif, Tuesday.gif etc,... 

PHP Flickr! photo album on your website

PHP Flickr! photo album on your website

This code uses your Flickr! account and creates the URLs to the pictures for display on your own personal website! The full documentation is available at http://www.strydominc.za.net/index.php?p=projectdetail&d=phpflickrphoto <?php /************************************************* www.strydominc.za.net Created... 

Very Simple Password Protection of a Page

Very Simple Password Protection of a Page

// Bare Bones demo of password protection <?php $password = "abc123"; if ($_POST[doddle] == $password) { $tell = 1; } else { $tell = 2; } if (! is_string($_POST[doddle])) $tell = 0; ?> <html> <head><title>A... 

PHP code to get user IP and Ban by IP

PHP code to get user IP and Ban by IP

PHP code to get user IP and compare to others in a file, and ban if they match. This code snippet will read the IP’s  from the txt file with your IP’s listed that you would like to ban, this...