Category: php
Given that we know how to retrieve the number of CPU cores using PHP Function, we can then check the current load average, if it is larger than a …
We can use the following PHP Function to return the number of CPU Cores in the current System. At Linux Servers, this is done via looking into processor information …
Pictures/Images taken by Modern cameras (SLR or Smart Phones) have stored some additional data (meta information) in the JPEG such as camera model, make, exposure time, ISO etc. We …
The following is a PHP Function that allows us to truncate a string (and optionally appended with suffix e.g. dots) if the length exceeded the threshold. Otherwise, the function …
Many situations we want to be able to detect if a post/comment is spam by checking to see if it contains a list of spam/forbidden words. The following provides …