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