I’ve been testing a website that generates images on the fly and in the past had used the less command to view the file contents, this helped see when PHP errors had unfortunately made their way into an image file. However, sometimes when viewing a file I got the following error returned: No identify available […]
Category Archives: Quick tips
Taming MAMP on the command line (and upgrading PEAR)
I’ve posted a new article to our company website on how to get MAMP, the command line and PEAR working together in harmony. Take a look at http://www.studio24.net/blog/taming-mamp-on-the-command-line-pear
Checking your Zend Framework route order
The order that you create your routes in Zend Framework is important, with the last route defined in your code being matched first. This allows you to set up custom routes and if these aren’t matched Zend Framework helpfully falls back to the default route which is set up first. If you have a lot […]
Understanding the stack index for Zend Framework Controller plugins
Zend Framework Controller plugins are a powerful way to inject logic into your controller system at various points, such as before and after an action dispatch. Plugins are run in the order they are added, though it is possible to change the order by defining a custom stack index. ZF internal plugins such as Zend_Controller_Plugin_ErrorHandler, […]
Multiple accounts for my.rackspace.com
We host most of our client sites at Rackspace so we have a fair few servers and different accounts we need to login with whenever accessing the my.rackspace.com portal. While the site has a cookie to remember the last entered account number and username, it doesn’t help if you have half a dozen different accounts […]
Finding the Apache user in PHP
In PHP, knowing what the Apache user is on your webserver is very useful. Anything that writes a file to the server for example sessions, uploading files or other temporary file operations, needs to have the destination folder writeable by Apache. If you’re developing locally that’s not usually a problem. But as soon as you’re […]