PHP

  • Filtering Arrays in PHP

    ·

    Few PHP developers know how to manipulate arrays using PHP’s built-in functionality. Here are three powerful applications of this function set and why you should use them in your code.

    Read More

  • PHP, Security, and Lambdas

    ·

    If you’re writing PHP code and you want to use lambda functions, don’t use PHP’s create_function() method. It’s insecure, and will be flagged as such by security software and analysts.

    Read More

  • You Can’t Go Home

    ·

    We often leave one place for another, still harboring the hope that we can one day return and pick things up where we left them.

    Read More

  • Understanding Parallel Processing

    ·

    When I explain to people that I enjoy writing code in C# more than PHP, they scratch their collective heads and, with a quizzical look, always respond, “why?” My biggest reason: I really enjoy working with parallel processing.

    Read More

  • Server-side Analytics through Google

    ·

    Some of the products I build for the web don’t come with a website. But I can still use Google Analytics to track their usage. Thanks to a handy PHP library I found on GitHub, I now have the luxury of tracking the execution of server-side scripts in the same analytics dashboard I use to…

    Read More

  • Making Singletons Safe in PHP

    ·

    Last time, I argued in favor of the Singleton pattern in WordPress.  Singletons make sense in WordPress specifically for several reasons: They live in the global scope without using the already abused/overused [cci]global[/cci] keyword As a distributed application maintained by several hundred developers, they prevent problems that likely arise from others misusing your code But

    Read More