Blog Home | Fife Visits Blog | Fife Rant Blog | Random Computing Stuff Index

Investigating PHP

I am currently working my way through MySQL for Dynamic Websites by Larry Ullman (edition 4).
I currently (as at December 2012) run php 5.3.10-10 and a mysql 5.1.28 database on apache 2.2.22 server on Ubuntu 12.04 in VirtualBox.

Chapter 13: Review and Pursue

Update to chapter 3 calculator.php that works out details for a car journey: Mar 2013

The php code in the pdf below is an investigation of the 3rd Review element of Chapter 13 PHP and MYSQL for Dynamic Web Sites (ed4) by Larry Ullman.
Changed this to add cast functions to validate the input. I found it could be broken if there were empty spaces inserted, so I used the trim function to fix that. There's quite a lot going on here mostly as solutions to the old ch3 Review and Pursue solutions.

If the pdf doesn't open, go to new car journey calculator.pdf using casting