Occasionally Relevant Insights from a Software Builder



This is a utility I wrote to help in scanning documents to different sizes. What typically occurs is the customer gives you an image and they want it scanned to a certain size. The image usually won’t scale proportionately, so you will have two possible size that can fit either of the dimensions of the desired size.

ScanCalc will give you the two possible sizes of the image when it is scanned with the resolution and percent increase in page size to reach the final size.

You can get ScanCalc by clicking here.


Using PHP with Mobile XHTML

Mobile XHTML is the best markup language for mobile browsers as opposed to WAP. XHTML, however, does have limitations which can be solved by dynamic scripting. If you renamed the page’s extension from html to php, the page will not display in a mobile browser. I spent a great deal of time searching the Internet for a solution and not one site could help me. After some thought, I discovered how to create a mobile PHP page.

A Mobile XHTML page has 2 HTML tags at the start of the page. If you remove these tags, the page will not display correctly. A PHP page must begin with the following bit of code in order to display:

< ?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "">

This code must appear at the very beginning of the PHP page before the HTML tag. From there, you can use any PHP function available.