Category: PHP

PHP 7.2 AND WORDPRESS 4.9.4 OUTPERFORM

PHP 7.2 has managed to improve server performance rather significantly. It even outperforms the  HipHop Virtual Machine that Facebook developed to compile scripts in a big to increase performance. Kinsta benchmarked several CMS systems in addition to WordPress and PHO 7.2 delivered the best results across the board. We use WordPress is easily popular choice for …

Continue reading

WORDPRESS HTTP 304 ETAG HEADER PLUGIN

By deploying some additional code to your WordPress site, it can cut down on the need to have Google etc have to download every page on your site. The idea of HTTP 304 is to tell a search engine a given page is unchanged. By using a hash value, a tag called ETAG can be …

Continue reading

SHA-1 COLLISION

It took several years but researchers have finally beat SHA-1 and found it is easily possible to have 2 different documents with the game hash value. SHA-1 was officially deprecated by NIST in 2011 SHA-1 is widely used with HTTPS certificates in addition to many other applications. SHA-1 is also widely used for file integrity. Consider …

Continue reading

LOCATION BASED ADVERTISEMENTS

At its most basic, an agent on a website has an IP address. By using a database, then known ip address ranges can narrow down the search. We have seen many problems with mixed http and https configurations. OBTAIN THE CLIENT IP ADDRESS $protocol = "http://"; $useraddress =  $_SERVER[‘REMOTE_ADDR’];$protocol = "http://"; $useraddress =  $_SERVER[‘REMOTE_ADDR’]; if ($_SERVER[’HTTPS’] == ‘on’) …

Continue reading

PHP 5.6.24

PHP 5.6.24 as released July 21, 2016. Lots of security updates.   http://www.php.net/ChangeLog-5.php#5.6.24   This site uses WordPress which depends in PHP 5.6 for its back end code