Tag: php

PHP: Enable GD image library

Many features that you see on the web require that the GD library be enabled on your PHP server. You may need the GD library if you are attempting to display CAPTCHA graphics somewhere on your site. In a default PHP...

Read More

PHP: URL inside Regex

Using special, regular expression characters in regular expressions require you to escape them in the regular expression pattern. I had an issue with dynamically getting an array of URLs from HREF attribute from links using PHP...

Read More

PHP: Increase memory limit

Have you ever received a fatal error on your server similar to the one below when you tried to execute a script? The fatal error shown below, indicates that your PHP configuration has a memory limit set and the script which you...

Read More

PHP: Date difference in days

You might need to calculate the date difference in days using PHP. You can easily calculate the days difference by using something like the code below. function datediff($date1, $date2) { return round(abs(strtotime($d1) -...

Read More

PHP : Array to Object

I wrote a quick and simple function which allows you to quickly convert arrays to objects. It allows you to change an array like this : $a['b']; To an object like this : $a -> b; The quickest way to do this is with...

Read More
Loading

Pin It on Pinterest

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!