by Cube Websites | Feb 29, 2016 | PHP
The Code // Inline Style Images $content = preg_replace_callback(‘/!\[(.*)\]\s?\((.*)(.png|.gif|.jpg|.jpeg)(.*)\)/’,function($match){ return str_replace(‘your_search_term’,’your_replacement’,$match[0]); },$content); // Reference...
by Cube Websites | Aug 27, 2012 | Concrete5, Development, PHP
Hi folks, I’m back with another freebie for you. This time it’s a Concrete5 package that lets you create, manage and display testimonials on your website. The following fields are available to you: Title Author Department Quote URL Display Order When...
by Cube Websites | Jan 17, 2012 | Ruby on Rails, Technology
Introduction This year I’ve decided that I want to learn at least one new language and have decided that I’ll be learning Ruby. I’ve read great things about Ruby and Rails, all about how it’s made development fun again for devs, lets you actually get on with creating...
by Cube Websites | Sep 2, 2010 | Development, PHP
This morning I was faced with an issue with SwiftMailer where the PHP code was throwing an error message as it failed to connect with the mail server. To solve it I first thought of using a try/catch, but obviously that wouldn’t work due to the fact that the...