Blog Posts

Debugging PHP with Magic Constants

Feb 12, 2008 - Elliott Brueggeman
Debugging Can Be Difficult Debugging a PHP script can be a difficult task, especially when code is located over many files.

Web Development Blog Hiding Email Addresses and Names from Search Engines in PHP

Feb 5, 2008 - Elliott Brueggeman
Background Displaying your email address on your site as text has always been risky. Why? Long ago, spammers created bots that searched the web for email address (by looking for something in the format) and then spammed them to oblivion.

Using a Timer with AJAX

Jan 15, 2008 - Elliott Brueggeman
Background In the previous article, we examined the PHP AJAX Framework, which is an easy way of combining AJAX with PHP. In order to trigger our AJAX, we relied on user interaction. However, what happens when you want your AJAX call to execute at a certain time interval?

PHP AJAX Framework

Jan 8, 2008 - Elliott Brueggeman
Background One of the most useful new web technologies is AJAX, or Asynchronous JavaScript and XML. In short, AJAX allows you to send and receive server requests without a user having to reload the page.

Integers and Floating point numbers in PHP

Dec 22, 2007 - Elliott Brueggeman
Background PHP is not a strictly typed language, and many programmers often overlook problems that can be caused with not paying attention to numeric types. The problem is that PHP does not alert you when you have gone outside of the bounds of what an integer can hold.

Generating PHP Comma (.csv) and Tab Delimited Files

Dec 15, 2007 - Elliott Brueggeman
Background Previously we have seen how to make a native Excel spreadsheet through the use of the PEAR extension. This article is about generating comma (.csv.) and tab delimited spreadsheets that are readable in many popular programs, and useful in a multitude of websites and applications.

Excel Spreadsheets in PHP using PEAR

Dec 6, 2007 - Elliott Brueggeman
Background Generating spreadsheets in PHP is a powerful tool. Natively, PHP can generate .csv spreadsheets with little fuss by sending a header to the browser to generate csv output.

A Very Useful PHP Function: register_shutdown()

Dec 1, 2007 - Elliott Brueggeman
If you’re a PHP programmer, but you’ve never used register_shutdown_function(), you are not alone. Buried in the Function Handling section of the PHP manual, this function is seldom in PHP programming books or tutorials.

Creating a PHP Captcha

Nov 21, 2007 - Elliott Brueggeman
Captchas are images that are meant to tell the difference between a person and a computer. They are often used as an anti-spam device when someone submits content to a public website.

Using MySQL GUI Tools

Nov 10, 2007 - Elliott Brueggeman
Administering MySQL is not an easy task. The cryptic my.ini database settings file is hard to set correctly. Also, using the MySQL command line is rather intimidating if you don’t know exactly what you’re doing.