Skip to content

PHP Setup

All that is needed for using TaxControls PHP tables is a web server capable of hosting PHP files. If you plan to use the taxNamesForZip function (see below), then your PHP installation must have the PDO module, with a sqlite driver.

  1. Download

    Download the PHP demo from here.

    The zip file contents:

File Description
tables.php The main PHP file
index.php A simple demo page
zips.db A SQLite database with zip codes and tax names
scheme.php A PHP scheme interpreter
library.scm A scheme file for evaluating ZIP Code rules
php.chm A winhelp version of this documentation
README A text file with installation instructions
  1. Unzip

    The PHP demo should be unzipped into a directory under the document root of the web server.

The demo index.php file has a simple form that gathers information for calculating taxes. The form includes the tables.php file, which it uses to compute each tax, then returns the results to the browser.