CLICK HERE for freeware and commercial PHP scripts
from our parent site TD Scripts.com

PHP Example Scripts
HOME: PHP Diary | PHP Scripts | TD Scripts.com | scriptschool.com

example scripts 1-16
execute/example | text | source | summary
example scripts 20+
execute/example | text | source | summary

date and time functions
example #1 (12/18/99) source - displaying the current date in an HTML page (incorrect)
example #2 (12/18/99) source - displaying the current date in an HTML page (correct)
example #3 (12/18/99) source - current month/day/date format
example #4 (12/18/99) source - current month/day/date with HTML colors & formatting
example #5 (12/19/99) source - change background color based on day of the week using if else elseif statements
example #6 (12/19/99) source - change background color based on day of the week using array
example #7 (12/21/99) source - add date time stamp "page last updated on..." using filemtime function

using forms, cookies, flat file databases, random number generation
example #8 (12/22/99) - forms processing introduction
example #9 (12/23/99) source - setting and retrieving a cookie
example #10 (12/24/99) source - getting an average number using PHP
example #11 (12/26/99) source - showing the surfer average vote statistics, using printf function
example #12 (12/27/99) source - generating a rand number from 0 to 9
example #13 (12/27/99) source - php simple slot machine - multiple rand number generation
example #14 (12/27/99) source - random text link advertising using predefined arrays

mail, regular expressions, password protection
example #15 (12/28/99) - mail processing introduction
example #16 (12/29/99) source - forcing the text in a string to be all upper or lowercase

example #17 (12/30/99) - subscribe or unsubscribe to the php-scripts mail list
example #18 (12/31/99) - making a hardcoded browser based admin password system
example #19 (1/1/2000) - the complete TD Subscribe Mail administration HTML template and code

admin, searching
example #20 (1/5/2000) - searching a website URL for a keyword or sentence
example #21 (1/6/2000) source - searching through meta tags for a search engine
example #22 (1/7/2000) source - searching through a directory and picking out files using a regular expression
example #23 (1/8/2000) - searching through the diary entries, by meta tag keywords and descriptions
example #24 (1/9/2000) - making a page counter
example #25 (1/21/2000) source - shuffling and "cutting" a deck of playing cards
example #26 (1/22/2000) - blending JavaScript with PHP

mySQL Database interaction
example #27 (7/20/2000) source - admin interface for adding and deleting users using mySQL
example #28 (7/30/00) - Update and populate a mySQL database using a loop with the most current rating information
example #29 (7/31/00) source - Reader rated most useful diary entries in descending order
example #30 (2/19/01) source - multi-colored source code for .htaccess file (UNIX)
example #31 (2/19/01) source - creating a mySQL table using a PHP script
new example #32 (2/19/01) source - mySQL based counter script for multiple pages

Automating manual tasks, date sorting, mktime()
example #33 (12/29/02)
example #34 (12/29/02)
source
example #35 (12/29/02)
source

The next example script will go here...

CLICK HERE for freeware and commercial PHP scripts
from our parent site TD Scripts.com

HOME: PHP Diary | PHP Scripts | TD Scripts.com | scriptschool.com

Copyright 1999-2003 php-scripts.com