DEANO.ME

PHP

 

It’s annoying when you are looking for a particular class in a system you are not very familiar with, you end up looking all over the system file by file hoping to find the class so you can make changes to the code as you require. Well there is a simple solution which will allow […]

 

Being able to parse HTML with PHP is very important if you need to scrape data from a website or add/remove parts of a html document. Fortunately this is extremely easy with Simple HTML DOM, this 46KB include is a miracle script that enables you to read HTML files into an object which you can […]

 

Over the last few weeks I have been working with OpenCart, a free Open-Source Shopping Cart. And so far I have been loving it! However it was not long until I hit a road block with the software, after enabling the clean SEO URL’s feature and setting up my “SEO Keywords” for all my products, […]

 

Quite a few years ago I was having difficulty with sending HTML emails, on some clients they worked fine but for others they would come through all garbled. so I decided to research a correct approach, which I implemented into a function. A little while later I wanted to also send file attachments in the […]

 

Has your twitter feed stopped working the last couple of days? Well if your using V1 of the Twitter API then there is a very good reason, twitter have now dropped support for V1 of the API and you must update your code to work with V1.1. Unfortunately you cannot simply change the URL to […]

 

Recently I had a weird problem where I was setting up two sites to use Barclays ePDQ, however the post back URL for both sites were completely different so I could not simply format a PARAMVAR so ePDQ would post to the right place. I finally concluded that I needed a central location for ALL […]

 

Something that has been racking my brain this morning… I recently moved all the sites I host (including my own) to a new VPS server, everything went far smoother than I could have imagined and I thought I had escaped the pains that you could expect from a server transfer, such as broken scripts due […]

 

Today I came across the weirdest error ever in PHP, it is so weird it is not even code related, in fact it is completely COMMENT related and it stumped me for SEVERAL HOURS! Okay so here is a snippet of code to demonstrate… (obviously the code I was working with originally was very complex […]

 

PEAR (PHP Extension And Application Repository) is a framework and distribution system for reusable PHP components, it comes in “packages” depending on various functionality you may require and is installed into a server using PEAR’s own installer or PYRUS. However you CAN “install” any/all of the PEAR packages without actually “installing”, the PEAR packages are […]

 

I recently decided to implement the Ebay Partner Program into my website as the Google Affiliate Network was making me nothing. One of the biggest problems though is, when using the “Widgets” you do not get Geo Targeting, so you have to create a different Banner for each country and implement a way to target […]