Appendix D:
Complete Scripts and Other Files

Google

Notes:

  • The PHP scripts included with this ebook were the most recent versions available at the time this ebook was written. Feel free to search for newer versions online. If the author's URL isn't in the notes, search on the script's name in Google.

  • I took the program descriptions for many of these scripts from either a) the authors' websites or b) a distribution site such as www.sourceforge.net. In most cases I have rewritten them somewhat for improved clarity. Some of the programmers speak English as a second language and others simply write far better code than prose.

  • Most of the scripts are contained in ZIP files. You'll need an unzipping program such as WinZip to open them. At least one is a TAR file which can also be opened by WinZip. MAC users will need a different unzipping program in most cases.

  • I strongly suggest you create a new folder for each script and extract the files to that folder. Save a copy of the original archive (ZIP or TAR) file just in case you need to recover from a failed/misconfigured installation and start over.

Free Scripts For Immediate Download

  • Active PHP Bookmarks(APB) - a web-based program that allows you to store your bookmarks and display them in many useful ways. It will sort your bookmarks with usability in mind, keeping often-used bookmarks at your fingertips. It has a bookmark search, private/public bookmarks, nested groups, usage rankings, popularity sorting, and a quick add feature.

    APB requires PHP, MySQL and a webserver. It is known to work with MySQL 3.23.41 and PHP 4.0.6 but may work with older versions as well.

  • Awesome Template Engine - a PHP templating system featuring: XML-like tags; no interpreted steps; as fast as your PHP scripts; fast and easy to learn. Make template pages quickly for short website development time.

  • CJ Ad Rotator - an ad rotator. Simply upload a list of all your advert codes in a list and link to the script using a php include and you're done. The script changes which advert will be viewed next making sure that all your adverts get equal viewing (it's not random). The script requires the page to be refreshed to change the advert that is shown.

  • CJ Hit Counter - a very simple, easy to install webpage hit counter. The font and color of the counter are both customizable. There are only 2 files to upload to your web server. Recently added is the ability to separate the thousands.

  • CSS Generator - a css generator is to make your life easy, updating your sites' css files, making sure they're compatible with all browsers and detecting which browser should get which style sheet.

  • FormMailer - a single script to handle as many forms as you want to throw at it with as many fields including file attachments. The only "hidden field" variable is a single configuration value to call the proper variables in a script-level array to get the right configuration info. This keeps all recipients, cc's, bcc's and other value's typically held in hidden fields away from the prying eyes of spambots and provides far fewer routes for hackers to take to compromise the script.

  • Mini Auth - a "quick and easy" authentication system. It uses the MySQL 'encrypt()' function to encrypt and match passwords. It uses the user's username as a salt. Once a match is confirmed, an MD5 checksum is generated and all three identifiers are set in a cookie on the user's machine. Expiration time on the cookie is configurable.

  • Molesoft Mailing List Manager - a simple and easy mailing list management script with opt-in confirmation by email to make sure it is not used for spamming.

  • POST Affiliate - a free affiliate system in PHP. Customizable and easy to use. Affiliate management, banners/links management, sales and clickthroughs viewing. Based on PHP-Affiliate but enhanced and secured.

  • WhatDaFaq - a script that builds FAQ pages for your website. Its back end web interface and general design allow it to integrate easily into your website, allowing you to put up FAQs quickly and easily.

  • Aardvark Topsites - the premier PHP/SQL topsites script. Members' ranks can be shown on their button and there are 6 different ranking methods including pageviews. Powerful anticheating protection is included. It supports categories. You can use up/down/neutral arrows. The admin allows you to approve new members, edit existing members, delete bad members and much more.

  • Advanced Guestbook - a PHP-based guestbook script. It includes many useful features such as preview, templates, e-mail notification, picture upload, page spanning, html tags handling, smilies, advanced guestbook codes and language support. The admin script lets you modify, view and delete messages. Requires PHP4 and MySQL.

  • AzDG Dating Lite - a dating script working on PHP and MySQL. PayPal integrated and allows you to upload 3 photos. It includes multiple language support, 35 registering fields, a messaging system, birthdays, a "recommend us" script, a powerful admin mail list feature, quick/simple/advanced search and it can show photos on search results.
  • Content Manager - a simple tool to help make the task of getting a website up and running as painless as possible even for someone with no HTML experience. It controls the hierarchy of the navigation, can create button rollover effects via cascading style sheets or with images, has an optional rich-text editor so you can make page content as easily as using a word processor like Microsoft Word and much, much more.

  • CS LiveHelp - a multi-user, multi-operator, multi-department live Help support chat system that allows the operators of the websites to monitor their visitors as they are browsing the site and proactively open a chat session with a visitor. It's coded in PHP and uses a MySQL database . Other features include AUTO INVITE!, referer tracking, page tracking, chat notification, user is typing message, multiple chat sessions, sound alert, leave a message if offline, push urls, quick responses, and multiple operators. Runs on your server and is open source GPL.

  • D-Ring - a simple web ring script written in PHP4 that allows you to run a web ring on your site without the need of third party servers like webring.org or yahoo. D-Ring needs no SQL and is meant to be easy to install and simple to use. No user authentication or protection is in place for the admin section of the script, so you will need to either write your own or use an .htaccess/.htpasswd combo.

  • File Master - a web interface that allows uploading, deleting, renaming, and setting permissions for files. And you can also link to view each file and obtain file details such as type, size and other properties. A new feature, particularily useful for people who just use this for managing pictures for use in online auction sites such as eBay, a button has been added that opens a prompt box that contains the url directly to the file for quick copy and pasting into the online auction's form for each item.

  • ICQ Pager - a script that enables you to put an ICQ pager form on one or more of your web site pages. The visitors to your web site can use this form to send a short message to any ICQ user.

  • Instant Web Mail - a free, web-based POP mail client. It is incredibly easy to install but is nevertheless a quite advanced program. Some of its features include: does not require PHP to be compiled with IMAP support, reads and sends attachments, displays text/HTML attachments in-line (while still giving you the option of saving them to your hard drive). Has all the basic functions: view all headers or the full source of the email, works even if the user has disabled cookies, localized date field, translated into several languages, can be set up to check for new messages automatically, customizable page layout and more.

  • iWare Professional - a powerful and versatile web based content management system designed to make creating a professional web presence easily without the associated hassles of learning to program or master a 3rd party application.

  • Link Directory - a links directory engine. Build you own google. Has most popular links page, newest links page, highest rated links page, determined from a built-in user rating system, search the directory or browse its customizable and virtually unlimited category hierarchy. Customizable looks and layout. User submissions can wait for admin approval and much more. Also, can be used without a URL to just work as a rating system.
  • Net2FTP - a web-based FTP client written in PHP. Features include: browse, upload and download files, copy, move and delete files and directories, copy and move directories to a second FTP server, rename, chmod, edit code right from your browser, view code with syntax highlighting. More help and advice on this program can be found here: http://www.net2ftp.org/forums/

  • PhotoSeek - a Web-based GPL image-cataloging and management system that uses both standard image comments and Adobe Photoshop-type embedded description fields to catalog images. Photoseek uses PHP+MySQL to allow the cataloging and searching of images in a database. Note: be sure to get both photoseek.zip and img-tree.zip.

  • phpMyNewsLetter - a mailing list management script. The subscriber's info is stored in a MySQL database. Features include: subscription checking - whether or not the subscriber is already registered, sending a welcome message at the time of subscribing and unsubscribing and user-friendly administration allowing you to send messages, list and delete the subscribers. It supports HTML e-mail, preview of the message before sending, logging system, multiple languages (English, French, Italian, German) and user-friendly web configuration and installation.

  • Proverbs PHP Web Calendar - a customizable web calendar developed using PHP and powered by MySQL. The calendar is viewed in month format with a popup window detailing the events of each day as they are clicked on. The calendar is customizable within a single file and allows changes to the title, color choices, starting day of the week, time format(24hr/12hr) and time zone display.

  • Traffic Gopher - a script that lets you set up your own link tracking business. There are two different memberships you can sell with this script and both are beneficial to you. The lite membership requires your customers to keep a banner to your website on theirs in order to track their stats. The pro membership does not require the customer to link to your site. The script automatically takes payments via the PayPal subscription method so you are assured of receiving your fees every month. It also keeps track of your customers' statistics daily, weekly and monthly.

  • UserAgent Logger - a very simple, light-running traffic logging and analyzing script to track your traffic for browser and OS usage as well as for known robots and spiders. Now added in the latest version is the ability to trick, trap and ban rogue robots either manually or automatically.

  • Website Toll Booth - an easy to use and easy to install website script that gives you all the information about your web traffic that most web hosts don't provide. Record all of this: IP addresses, language, browser, operating system, is user new to site?, date and time, last visit, days since last visit, referrer page, keywords used to search. Supplied with Master resale rights.

Other Files You Might Find Useful

  • ar_plain.php - tiny and simple script for sending text-only email messages automatically. Edit as needed before using it.

  • ar_html.php - slightlight modified version of ar_plain.php that sends messages in HTML format. Edit as needed before using it.

  • ar_fancy.php - example of a script that can send text and attachments, use CC and BCC fields to deliver the message to multiple recipients. Edit it as needed before using; you may want to use the code in Chapter 12 to control the boundary marker.

  • ar_multi.php - example of a script that can send both text and HTML versions of a message as well as attachments. Be sure to add some code to make the boundary marker unique to each message; this is explained in Chapter 12.

  • arrays.php - a set of arrays for state and country lookup; very useful in combination with drop-down menus on an order form. Other arrays: $bad_emails is an array of domains to which you should not send any email (autoresponders, etc.). $badwords is an array of words mostly associated with porn sites (might be used with a filter). $badurls is an array of porn sites, for filtering these vermin out anywhere you need to do so.

  • colorbar.gif - a sparkly colored line; nice separator for blocks of text on a web page.

  • database.php - a model for a script that can create a database and create tables inside the database. You can add more code to populate the database tables by reading info from text files, etc., or whatever else you need to do. There are instructions in the script so you won't have to refer back to the book too much.

  • echo1.php - a demo file to show how HTML pages can be built using PHP.

  • form1.html - an example form from Chapter 8.

  • library.php - a collection of functions. You can "include" library.php in another script and then call any of its functions as if you'd actually pasted their code into the new script. When you create some really cool reusable code, add it to the library as a function; you'll save a lot of work later.

  • menus.html - a page of HTML code for state and country drop-down menus.

  • rem_dupes.php - a script to open a text file that contains a list of email addresses. Reads the file, sorts them alphabetically and removes any duplicates. Then it rewites the file. Very handy if you need to clean up an imported or exported email list.

Previous Page   Table of Contents

Copyright © 2004 Steve Humphrey