PHP classes for common tasks

Find below several PHP classes for tasks like file upload, user login and form field validation. These scripts are open source and it’s allowed to use them for free even in your commercial projects. You can modify the source code or even redistribute the code if you keep the author information ( inside your work. If you’re not sure, please check the information at the top of each PHP class script. You’re welcome to tell us about your comments, suggestions and questions.

PHP Scripts and Classes

PHP Upload Script » Demo
Upload photos and other files with this easy to use and free PHP upload class script. Several example scripts are included.

PHP Attachment Mailer Class
PHP class handles multiple attachment e-mails using html and the mime mail standard

PHP Login: Access_user Class
Easy to use PHP class to protect pages and register new users

PHP Whois script » Demo
Check domain names for different TLD’s against a whois database

Counter & visitor statistics
Easy to use system to track users and visitor statistics

PHP Shopping Cart script (DB_cart)
This universal shopping cart script is powered by MySQL and works with external customer and product data.

Validate form fields Script » Demo
PHP form field validation for string, date, URL and number values

PHP Pagination Class » Demo
Use this PHP class to execute your MySQL recordset and create some page navigation links extremely easy.

TemplateMonster XML API Script » Demo
Import template data from the TemplaterMonster XML API into your MySQL database

Find PHP snippets, custom functions and PHP code in our PHP snippet section. Subscribe to the RSS feed from our web development blog and get updates about PHP tutorials, online marketing articles and many more.