Tag: PHP
20 years of PHP #20yearsofphp
June 9th, 2015On 8th June 1995, Rasmus Lerdorf announced the release of Personal Home Page Tools Version 1.0. To celebrate the 20th anniversary, Ben Ramsey has asked the PHP community to share their PHP experiences and share them on Twitter using the hashtag #20yearsofphp.
Solved: PHP Imagick ‘unable to open image’ PDF
October 29th, 2015I've recently stumbled across an issue where PHP Imagick can't open a PDF file despite the file being there and readable. This is using Mac OSX El Capitan with Homebrewed PHP5, Imagemagick, Ghostscript and the PHP55-imagick module. After a bit of searching I found the fix.
Magento Snippet: How to set and get cookies in Magento
February 22nd, 2016Here's how to get and set cookies in Magento 1.
Product and Breadcrumb Rich Snippets in Magento
February 29th, 2016Here's how to add products and breadcrumb Rich Snippets in Magento.
Solved: Fix for PHP Composer “????%” issue
July 28th, 2016I've had a problem on a few older projects where composer dies with "????%" after running `composer update`. Here's the fix.
HEAD request with PHP
March 30th, 2017If you want to perform a HEAD request with PHP on an URL you can use the `stream` functionality...
How to upgrade Magento 2 to a later version
June 9th, 2017Here's how to upgrade Magento 2 to a later version. For example, if you are currently running 2.1.6 and you need to upgrade to 2.1.7.
Magento: remove admin mass action for specific role
August 15th, 2017I had a use case where a Magento admin user was limited to viewing the orders only. They should be able to view orders but not perform any actions on an order. The best way to do this with Magento is to remove admin mass actions for a specific user role.
Using Docker with Laravel
July 21st, 2019When developing on a Laravel project I've used Homebrew for my web server and database, or used a Vagrant box. Whilst these work well most of the time there's an alternative that is quickly becoming the de-facto standard: Docker. Fortunately, getting Laravel to work with Docker is quite straightforward.
How to Set a User Agent for PHP fopen() calls
January 21st, 2020How to set a user agent when using PHP's fopen() with an URL
Symfony: Open file in VSCode or PHPStorm from the browser
April 30th, 2020Did you know you can open files in your IDE direct from Symfony's exception pages?
Solved: Installing composer V1 with Ansible
November 12th, 2020Here's how I solved installing Composer V1 with Ansible