PHP Scripts
I love writing code, all of my PHP Scripts are available to buy via Themeforest


 

Easy MySQL Backup & Restore

Easy MySQL Backup & Restore is a script which allows you to easily backup, store and restore MySQL Database backups from any number of databases you have access to on your server. A CRON compatible version is also included allowing you to automate your MySQL backups quickly and easily!

It is ideal for web designers who want to be able to backup all of their clients sites with one click, or for personal use if you have one or more databases you want to be able to backup quickly and easily. It has the following features:

Quick Backup Quick Backup allows you to backup databases definied in the settings file with a single click. These files are stored on the server with a timestamp for download later if required. You can also choose to email the backup file to the email address specified in the settings file.

Manual Backup Manual backup allows you to manually backup a database using the hostname, username, password etc. The added feature of the manual backup is that you can choose to backup specific tables only or the entire database. You can also choose to email the backup file to the email address specified in the settings file.

List Backups All backups are listed in an easy to navigate structure with their timestamp. Backup files can easily be downloaded to disk or deleted from the server with the click of a button.

Restore Backups Easily restore any one of your backups by simply clicking the restore icon and filling in the relevant database connection details. You can also choose to view a full restore report, giving you line-by-line details on screen of the restoration operation.

CRON Compatible Automatically backup a database using a scheduled CRON job using the CRON compatible version inlcluded in the download.

Completely Flat File Driven Other than the databases you are backing up, no MySQL database is required to install this script.

Both the PHP and CSS code is extensively commented and should (i hope!) be easy enough to follow.

It uses CSS for styling so again should be easy to modify if you would like it to match your website’s design, I’ve tried to make it as simple looking as possible so it should match a wide range of site designs without requiring too much modification.

Username and password for the Live Preview are both “admin”.

Please Note that for security reasons the Live Preview will not allow you to:

  • Create a backup file
  • Email a backup file
  • Delete a backup file
  • Restore a backup file
I’m sorry for the limited Live Preview but as I’m sure you can understand it’s only for security reasons. At least you can get a feel for how the script works and see how easy it is to use!
 

Demo Purchase
 
 
  

Advanced System Status

Advanced System Status is a script designed to allow you to easily and quickly add servers to monitor, and add system status messages as required. It has the following advanced features:

  • Totally flat-file driven, no database required!
  • Administration panel to add and delete new status monitors
  • Administration panel to add and delete system status messages
  • Administration panel to make backups of the data files and download them as required
The status display page uses the fsockopen function to open a connection to the designated IP address on the designated port using the TCP protocol.

If the response is positive the script will report the port/service as up. If after a specified time the query gets no response, the script will report the port/service as down.

This script is ideal for Hosting Providers/Resellers who:
  • Do not have the option of displaying their provider’s service status.
  • Do not have the programming knowledge to integrate with their provider’s service status API.
  • Do not like the look of their provider’s status page and would like to create their own.
It’s also ideal if you have your own dedicated box, or locally hosted server and would just like a simple and easy way to view the current status of a server/port.

Just get the IP address of the server you want to query along with the port number and enter it into the script where indicated and the script will just work.

Both the PHP and CSS code is extensively commented and should (i hope!) be easy enough to follow.

It uses CSS for styling so again should be easy to modify if you would like it to match your website’s design, I’ve tried to make it as simple looking as possible so it should match a wide range of site designs without requiring too much modification.

Username and password for the Live Preview are both “admin”
 

Demo Purchase

 
  

Under Construction Builder

Inspired by the new Themeforest template category I decided to create a PHP script which will allow you to manage your “Under Construction” pages much more efficiently. It will allow you to set the countdown timer and easily add progress updates at any time.

The Under Construction Builder is completely flat-file driven and comes with an admin interface which allows you to:

  • Configure the countdown timer
  • Add progress updates in percent
  • Add progress update status messages
  • Completely flat-file driven – no database required!
It also comes with a PHP include file which will allow you to:
  • Show the countdown timer anywhere on a page
  • Show the current progress anywhere on a page
  • Show all previous progress messages anywhere on a page
In the event of the user’s browser having Javascript disabled a static counter will be displayed and a non-animated panel will show and hide the previous progress updates.

Use the basic template supplied and style it to your liking, or easily integrate the code into an existing “Under Construction” page.

All of the code is extensively commented and should (i hope!) be easy enough to modify. It is styled entirely by CSS which should make it easy to style to fit your website design.

Username and password for the Live Preview are both “admin”

The JQuery countdown timer is written entirely by Keith Wood at http://keith-wood.name/countdown.html
 

Demo Purchase
 
 
  

Advanced Quotes & Testimonials

Advanced Quotes & Testimonials is a flat-file quotes and testimonials manager and display script. It’s features include:

  • No Database required, totally flat-file driven
  • Administration panel with login
  • Add quotes
  • Delete quotes
  • Javascript button to turn highlighted text into a link
  • Display random quotes anywhere on your pages
Advanced Quotes & Testimonials is perfect for use as either displaying a quote of the day or displaying customer testimonials on your website.

You can display the quotes on any page using a single line of PHP code (detailed in the packaged demonstration file)

All of the code is extensively commented and should (i hope!) be easy enough to modify. It is styled entirely by CSS which should make it easy to style to fit your website design.

The username and password for the live preview are both “admin”.
 

Demo Purchase

 
  

Advanced Image Upload & Management

The Advanced Image Upload & Management script allows you to login to an administration panel and then upload an image to your server. However, it has some advanced features which are:

  • No MySQL database needed, totally flat-file driven.
  • Entire script controlled from a single settings file.
  • Automatically resize uploaded images to your specified width while maintaining the original aspect ratio. This is ideal if you have bandwidth/diskspace concerns or want all uploaded images to always match a set width. This feature can be turned on or off when you upload.
  • When automatically resizing images, only images over your set width will be resized, meaning smaller images will not be distorted.
  • Automatically create thumbnails to your specified width while maintaining the original aspect ratio. Ideal if you want to use this script in a Gallery environment, showing the thumbnails instead of the full image is quicker and much more bandwidth friendly. This feature can be turned on or off when you upload.
  • If you plan on uploading images with the same settings every time, the default values in the settings file will get applied automatically to every image you upload.
  • Default values in settings file can be overridden “on the fly” for each image you upload (i.e. turn on/off image resizing, change resized image width, turn on/off automatic thumbnail creation and change resized thumbnail width).
  • Specify your own upload paths for both the main images and the thumbnails.
  • Uploaded images will be listed once you have logged in to the administration panel. Each image is listed with its filename, dimensions, file size, thumbnail status and a direct link.
  • You can delete images from the administration panel.
  • You can rename images from the administration panel.
  • Control which filetypes are allowed to be uploaded.
Both the PHP and CSS code is extensively commented and should (i hope!) be easy enough to follow.

It uses CSS for styling so again should be easy to modify if you would like it to match your website’s design, I’ve tried to make it as simple looking as possible so it should match a wide range of site designs without requiring too much modification.

The Username and Password for the live preview are both “admin”. Please note that you will be unable to upload, delete or rename files in the live preview.
 

Demo Purchase
 
 

Simple Download Counter

Simple Download Counter allows you to track and display the number of times a file has been downloaded without the use of a MySQL database. Ideal if you offer file downloads on your website. It is able to count the downloads for an unlimited number of files.

Simply specify your downloads directory, a directory for the counter files to be placed in and the list of files you are allowing for download (any filetype permitted) and the script takes care of the rest. Every file that gets downloaded will automatically get a counter file created for it, this file then counts the number of times a file has been downloaded.

If the specified file does not exist, a custom error page is displayed.

If the specified file is not in the list of files allowed to be downloaded, a custom error page is displayed.

If the specified file has reached a specified (optional) download limit, a custom error page is displayed.

All of the code is extensively commented and should (i hope!) be easy enough to modify. It is styled entirely by CSS which should make it easy to style to fit your website design.
 

Demo Purchase

 
  

Simple System Status

This is a very simple system status script written in PHP . It uses the fsockopen function to open a connection to the designated IP address on the designated port using the TCP protocol.

If the response is positive the script will report the port/service as up. If after a specified time the query gets no response, the script will report the port/service as down.

This script is ideal for Hosting Providers/Resellers who:

  • Do not have the option of displaying their provider’s service status.
  • Do not have the programming knowledge to integrate with their provider’s service status API.
  • Do not like the look of their provider’s status page and would like to create their own.
It’s also ideal if you have your own dedicated box, or locally hosted server and would just like a simple and easy way to view the current status of a server/port.

Just get the IP address of the server you want to query along with the port number and enter it into the script where indicated and the script will just work. You can either link to the page directly, include it in another page using PHP include or include it in your page using an iframe.

The code is extensively commented and should (i hope!) be easy enough to follow.

It uses CSS for styling so again should be easy to modify if you would like it to match your website’s design, I’ve tried to make it as simple looking as possible so it should match a wide range of site designs without requiring too much modification.

Demo Purchase