Will Bontrager Blogs Web Site Techniques
Debugging Articles
Stripping Invalid Characters From Currency Numbers
Currency symbols, commas, spaces, and other characters can wreak havoc with currency calculations. Here a way to strip invalid characters from string values for 3 different programming languages, Perl, PHP, and JavaScript.
Debugging Code that Can Save Hours of Frustration
Some servers just don't provide very good messages in error logs. And some hosting companies don't give their clients access to their error logs at all. This debugging code comes to the rescue.
Debugging Email Generated with a Script
When you suspect that email isn't received because the document being generated in the script is defective somehow, have the email printed to a file where it can be inspected.
The 'Empty Files Creation' Debugging Method
Here is a debugging method I sometimes use when I just can't otherwise find out where a problem is.

