• Categories



  • Archives

  • Archive for September, 2005

    PHP variable reference problems: further insight

    Published September 15th, 2005

    After my previous post about changes to PHP 4.4 and 5.0.5 generating new errors, I’ve been following with interest various discussions on the issue. In particular, I’ve been keeping my eye on the PHP Internals mailing list, where there have been a number of (ahem) ‘lively’ debates among the very people responsible for the development […]

    PHP 5.0.5: Fatal error: Only variables can be passed by reference

    Published September 13th, 2005

    A fairly obscure issue has been generating a lot of heat in the PHP community recently. With the release of PHP 4.4 and 5.0.5, a change has been made to the engine that has resulted in some new errors popping up in existing code. Check out this previously-acceptable snippet: function getAnArray() { $myArray = array […]

    IrDA USB-Serial Controller driver

    Published September 12th, 2005

    I’m looking at learning Java, so I can use J2ME to write apps for my mobile phone. To this end, I bought an IrDA (infra-red) dongle for my PC so I could connect directly for transferring files, debugging etc. It arrived this morning, packaged up in one of those really hard-to-open bubble packs. I ended […]

    Getting HTTP response headers when using file_get_contents()

    Published September 2nd, 2005

    This one’s more of a reminder for me than anything else. When retrieving data from a remote URL with file_get_contents() in PHP, it’s possible that the request will return an error code (eg. 404 File Not Found). As it happens, when you make this sort of request PHP creates an array called $http_response_header which — […]