DEANO.ME

Code Snippets / Functions

 

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

 

Windows has a very neat hidden feature which is only available for advanced PC users, just like in Linux, the windows file system allows for Junction Points and Symlinks. A Symlink (Symbolic Link) is the ability to place a “folder” which is actually a link to another location on the system such as a folder […]

 

The new Shellshock Bash Vulnerability is a serious vulnerability affecting any UNIX/Linux/Mac based Operating System, it has only recently been discovered and can basically allow any command full root permissions on your server, so for instance an attacker can gain access to your PHP Script and then use the exec function (which is a PHP […]

 

OpenCart is an awesome eCommerce system, however there are a few shortcomings due to the apparent lack of knowledge the OpenCart development team have (or perhaps the incompleteness of the OpenCart software?). Unfortunately the database structure of OpenCart does not implement MySQL indexing as it should, the database design however is extremely well implemented and […]

 

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

 

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

 

MySQL is a very powerful database management system with many useful features, there comes a time when you may need to search through a MySQL database and replace certain data which may now be out of date, the horrible thing is this data is repeated in many (and perhaps unknown) places throughout the table… So […]

 

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

Share
Share2
+1
Tweet
Share
Pin
2 Shares