Securing your downloads with PHP and mod_xsendfile
It's quite usual to see people sending secure file downloads using either readfile(), fpassthru() or similar. However, this approach for larger files can be troublesome because it goes through the PHP process using higher memory, relies on a high execution time and is slightly slower.
Enter Apache's mod_xsendfile.
Magento: Removing links in the navigation block by name or by label
Sometimes in Magento you may want to remove links from the customer navigation block. What you'll notice is it's actually quite hard to do so because there is no 'remove' method.
In this tutorial I will show you had to extend Mage_Customer_Block_Account_Navigation to include an extra two methods, one to remove links by name and the other by label.
Wordpress Shortcoder plugin: Create a Twitter widget ShortcodeIn this blog post i will show you how to create a Twitter widget Shortcode using the Wordpress Shortcoder plugin. This excellent plugin for Wordpress enables developers to create custom Shortcodes quickly and easily.
Wordpress: Version 3.3.2 and Beta 3.4
The PHP CMS Wordpress has a new revision available. Revisions include security updates to 3 external libraries...
Extending the Magento API
As UK Magento Developers we often find the need to extend the Magento API. This is actually quite easy to do.
In this article I will show you how to take the sales order API and extend it to automatically capture any payment when an invoice is created through the API.
Wordpress: Top 5 plug-insThe PHP content management system WordPress, has a large library of plug-ins available, most of which are very useful. WordPress saves you a lot of time in starting a new project as it comes with the core PHP and query libraries, as well as 2 default themes.
The JQuery File Upload Plugin
Wordpress: Moving from local to server side and the Blue velvet plug-in
When moving from a locally hosted Wordpress site to a server, the site may display an error when accessed - this is due to the Wordpress database retaining the local URL in the “option_value” column, which resides in the wp_options database table.
Wordpress: Adding classes to menu items
Wordpress: Adding a class to links in a menu.
Being new to Wordpress, I had a little trouble in adding classes to links in the main menu. Having found the “CSS Classes (optional)” option I thought I had figured this one out, but not quite. I viewed the pages source and found no class. Obviously I'd missed something out.
Deploying PHP Apps to Heroku
Recently Heroku and Facebook partnered to offer free app hosting on Heroku.
But Heroku didn't support PHP right? Correct.. Until now.