Resources

Entries from August 2008

Search

Twitter

    Web development resources.

    Monday, August 25. 2008

    Data Filtering Using PHP's Filter Functions - Part one

    Filtering data. We all have to do it. Most, if not all of us, despise doing it. However, unbeknown to most are PHP's filter_* functions, that allow us to do all sorts of filtering and validation. Using PHP's filter_* functions, we can validate and sanitize data types, URLs, e-mail addresses, IP addresses, strip bad characters, and more, all with relative ease. This is part one of two, covering filter_var() and the different constants and flags that can be set.
    Continue reading "Data Filtering Using PHP's Filter Functions - Part one"

    Thursday, August 14. 2008

    Dynamically Creating Graphs and Charts with PHP and GDChart

    If you've been working with PHP for a while, you already know that the language makes dynamic image generation very simple: the GD extension and a few lines of PHP code are all you need to create a JPEG, GIF or PNG image from scratch. However, while this works remarkably well for simple tasks, it can become tedious and complicated if you need to generate more complex images, such as graphs and charts, at run-time.

    Build Better Pages With Firebug

    Ask web developers to name their desert island Firefox extensions (ignoring for now the improbability of having a laptop while stranded), and they're bound to put Firebug at or near the top of their lists.

    Firebug is a web development tool for tweaking CSS, debugging JavaScript and more. In part, it's like juiced-up "view source" for seeing how sites are put together. But Firebug really shines when it's used to streamline your own development.

    The extension's slogan is "web development evolved," which is apt, given how much it changes one's approach to web work. The tools available in the standard installation of Firebug are super. Coupled with additional functionality available via Firebug extensions (sort of meta extensions, which add on to Firebug itself), you may feel like you have evolved.