php date_range() function

After looking at other examples of creating a date range (weekly), I couldn’t find a decent example, so I’ve created my own. The function takes 2 params, first being the date and the second indicates whether you want the whole month range or just from the date specified. Example: Return range from given date date_range("2012-02-29"); [...]

Read the Rest...
IIS 7, PHP, XML and cURL

For anyone who is trying to send a post request using all the above (IIS, PHP and cURL) then you may be hitting your head against a brick wall, like myself! This relates to a HSBC class (thanks to Reazaul Karim) that works by sending an XML output to HSBC’s API. This fix was found [...]

Read the Rest...
PHP5 – Object “clone”

This week I have been working on multiple items within K2 categories for Joomla and created an SQL statement within a search plugin to return a set a items ready to populate the search. The issue I had was the item(s) that were returned were referenced and I couldn’t change a value within the object, [...]

Read the Rest...
OSX and .zip files

Any one else had this issue? Eariler this month, I had a client that couldn’t get .zip files to work correctly with his server. If he zipped the contents on his Mac, PC users couldn’t open them, and if he zipped them on his PC, he couldn’t (and other Mac) users, could open them! So, [...]

Read the Rest...
SH404 Special Characters

Another issue with special characters! This time, SH404 (Joomla component) is the offender. URL’s containing ®, ©, ½, ¼ and ¾ all cause problems within IE9 (not tested in 6, 7 or 8). The issue I was experiencing was with modal windows. The URL was invalid and the modal window wouldn’t load the relevant information. [...]

Read the Rest...