All Books 93 Stack Overflow 82 Daily Thoughts 78 Ionic 61 Miscellaneou$ 60 Quick tips 43 CodeProject 36 NodeJS 27 Programming 22 JavaScript 18

M is not for minutes in PHP date function

Ah, it was one of those days when you’re too smart for your own good and you don’t check the docs and falsely assume that m must definitely be…

POST JSON Data With PHP cURL wrapper class

PHP biceps cURL 🙂 Following is the PHP cURL wrapper class which I use to make GET and POST requests. The examples are below. Disclamer:  be sure that…

Simple PHP XML parser using SimpleXML

Say you have a simple XML file books.xml  that looks like this: <?xml version=”1.0″ encoding=”UTF-8″?> <books> <book> <author> <name>Nikola</name> <surname>Brežnjak</surname> </author> <title>Some awesome book title</title> <year>2014</year> </book> <book> <author>…

Simple caching with Cache_Lite without having to install it through PEAR

Sooner or later everyone has to make use of some kind of caching of their content. Below is the simplest possible code demonstration on how to implement caching…

Using prepared statements in PHP with MySqli

So, as most of you know PHP 5.5.x has deprecated the original MySQL extension, and instead we should be using  MySQLi or PDO_MySQL extensions. Here I will show you how to use…

Building a really simple PHP templating engine

Recently I had to make use of templates in PHP, and as a lot of people on StackOverflow ([1], [2]) suggested “you don’t need another templating engine like…