PHP Abstract Base Class - Including validation

An example of a base class. Sample extension and call for instantiation: PHP<?phpclass Course extends Base {         public function __construct($properties) { &#1… more »

PHP filter_var_array Example

This is a very simple PHP contact form validation script. It fails silently, based on the expectation the client is validating the data prior to submitting it. In this case, if the server receives invalid inputs, inputs with invalid data, or a data se… more »

PHP - ImageMagick command line Pie Chart

This code was converted from a bash version to create pie charts. It is much faster and does not require bc on the server. PHP is used to create the ImageMagick command line. This code creates pie chart and legend images which can then be placed on a… more »

bash - ImageMagick - Pie Chart Script

This is a very simple script that will create a pie chart and legend using bash, bc, and ImageMagick. Many thanks to the link above which provided the algorithms to complete the SVG paths. It accepts a list of parameters which must add up to 100. The… more »

dgrid Print Shim

If you need to print a dgrid, you can query the store and create an HTML table with JavaScript. Create and work with the dgrid as usual, but add a second div below it which will contain the table. <div class="no-print" id="grid"></div… more »