Skip to content

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:

FileDescription
tables.phpThe main PHP file
index.phpA simple demo page
zips.dbA SQLite database with zip codes and tax names
scheme.phpA PHP scheme interpreter
library.scmA scheme file for evaluating ZIP Code rules
php.chmA winhelp version of this documentation
READMEA 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.