DEANO.ME

Code Snippets / Functions

 

One of the biggest SEO requirements is for images to have an ALT attribute for indexing and usability purposes, unfortunately when making posts most often ALT attributes are not set leading to lots and lots of posts with images missing their ALT attributes. I wrote a small function that will capture the page before output […]

 

Today I needed a solution to a problem, my designer had designed a fantastic category page for a clients eCommerce store, the category page featured rows of 5 products, which on firth thinking I thought I could get away with maybe 4 in a row or perhaps even 6 in a row. Unfortunately 4 meant […]

 

We have two blogs that we actively use for developer related content, this blog “deano.me” which is my personal blog and WebDesires Blog. The problem is that sometimes posts are relevant for both websites and anyone who knows about Google and their duplicate content policy knows how serious it can be to do this incorrectly. […]

 

on cPanel / WHM servers for some reason PHPMyAdmin has a ridiculously low upload_max_filesize setting of usually 50MB, this makes PHPMyAdmin useless for large SQL imports, especially with systems such as Magento where databases can be 900MB+. Fortunately you can increase this limit to something more useful, to be able to do this though you […]

 

I consider myself a seasoned PHP Web Developer, with over 10 years working in the field and with all the care and attention I’ve given Web Development over those 10 years it frustrated me recently to come across a problem that a client was having which baffled me, seriously baffled me! My client has a […]

 

A client recently approached me wanting some fixes and improvements to his responsive website, his main problems were with mobile view of the website where things needed cleaning up and streamlining. While in the meeting he mentioned that another site was scrolling really nice in Safari on iPhone, but his site was sluggish and looked […]

 

Recently I was trying to fix a website that needed to run PHP script from within HTML files, the site originally used a htaccess rule to set up html files so they were executed just like php files but this had stopped working. The problem is, there are many different methods for defining file extensions […]

 

As a developer you will constantly need to increase the memory that is allowed for PHP, you will usually find that this is essential when reading and/or writing large files or when working with large data sets. Luckily there is a very easy way yo increase the amount of memory allowed to PHP so that […]

 

So there’s been allot of talk about BPG and the benefits this format has over JPEG and GIF, so I thought I would do a little research on the format and find out if and when it will be replacing our tired JPEG and GIF formats. BPG is a new image compression and storage format […]

 

ConfigServer Security & Firewall (CSF) may start sending you warning emails that “klogd is not running”, dont panic its not hard to fix! All you need to do is make sure klogd is running by following the tutorial below, btw if you’re wondering klogd is a logging mechanism which logs kernal firewall messages to syslog, […]

+1
Tweet
Share1
Share
Stumble1
Pin
Email
Shares 2