DEANO.ME

PHP

 

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 […]

 

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 […]

 

Sometimes you want to display a page of your site in a convenient popup using AJAX, the problem with this is in the popup your obviously not going to want your website header, footer, menu bar and etc and would need to return just the content for the popup. Well with PHP this is easy, […]

 

WooCommerce is a great plugin for WordPress, enabling you to turn a standard WordPress install into a fully functional eCommerce shop. However I found there is no options to modify the default sorting options provided in WooCommerce categories, however after some digging I found that you can easily remove options from WooCommerce with some simple […]

 

PHP Sessions are great, they allow us to easily store information about a client without that client having ANY access to that data. In fact all they have is a “key” which links up to a session file stored on the server which PHP accesses behind the scenes. This makes sessions very secure for us, […]

 

The other day a colleague was having a very puzzling problem with PHP POST Variables, he was posting an array of values from a large form but some of the values were missing from the $_POST variable. After looking through his code a couple of times we came to the conclusion that the code was […]

 

PHPList is an amazing piece of software if your looking to send mailshot from your server, what makes it even better is the fact it’s 100% free! One of the biggest annoyances though is when it comes to processing your campaigns, by default this is done after you have created your campaign by clicking “process […]

 

Recently I was working with UPS Dispatch Labels, I built a neat system which would get back the label URL from the API and then pull out the image data from the document (the image being just the label itself). Unfortunately there was some whitespace on the label which was affecting a A4 instruction sheet […]

 

If your generating a CSV with PHP you may have stumbled upon the same problem as me where any special character such as £ becomes ASCII in your CSV, this is because the encoding of your CSV is wrong and you will need to output your CSV in UTF8 to be able to use special […]