Securing your downloads with PHP and mod_xsendfile

Posted by Stuart Forster on 12th July 2012

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.

Read more... [Post Comment]

Magento: Removing links in the navigation block by name or by label

Posted by Stuart Forster on 11th May 2012

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.

Read more... [1 Comment(s)]

Wordpress Shortcoder plugin: Create a Twitter widget Shortcode

Posted by Jason Carney on 7th May 2012
In 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.

Read more... [Post Comment]

Wordpress: Version 3.3.2 and Beta 3.4

Posted by Jason Carney on 27th April 2012
Tagged: PHP, Wordpress

The PHP CMS Wordpress has a new revision available. Revisions include security updates to 3 external libraries...

the PHP CMS Wordpress has a new revision available. Revisions include security updates to 3 external libraries:

Read more... [Post Comment]

Extending the Magento API

Posted by Stuart Forster on 27th April 2012

Magento: Extending the 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.

Read more... [Post Comment]

Wordpress: Top 5 plug-ins

Posted by Jason Carney on 19th April 2012
The 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.

Read more... [Post Comment]

The JQuery File Upload Plugin

Posted by Dave Thomson on 18th April 2012

The jQuery File Upload Plugin by Sebastian Tschan is an excellent plugin for asynchronously uploading files. Not only is it highly functional but it also looks great as It utilizes Twitter Bootstrap.

Read more... [Post Comment]

Wordpress: Moving from local to server side and the Blue velvet plug-in

Posted by Jason Carney on 21st March 2012

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.

Read more... [Post Comment]

Wordpress: Adding classes to menu items

Posted by Jason Carney on 24th February 2012

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.

Read more... [Post Comment]

Deploying PHP Apps to Heroku

Posted by Stuart Forster on 20th December 2011
Tagged: PHP, heroku, saas, paas, deploying, git

Recently Heroku and Facebook partnered to offer free app hosting on Heroku.

But Heroku didn't support PHP right? Correct.. Until now.

Read more... [4 Comment(s)]

< Previous 1 2