Useful Wordpress

W3 Total Cache HTTP ERROR 500, Call to undefined function W3TC\wp_unslash()

At the last update for W3 Total Cahe to Version 2.2.3 we reached the situation that the site no longer works, it returns a classic HTTP ERROR 500 error. The only solution to restore operation was to manually delete the entire cache plugin folder /wp-content/plugins/w3-total-cache and the object-cache.php + db.php files from /wp-content/ folder. The error […]


PHP Foreach Loop Benchmark – Optimize your code & Keep the server happy!

Keep the internet as energy efficient as possible and the easiest ways to reduce your carbon footprint is to optimize your code. The future of humanity and the planet is in your hands! The execution speed is very clear from the image below, each variant is sorted according to the speed of execution, the first […]

PHP Useful

Get HTTP Status Code – PHP Functions

Below are some useful solutions (php functions) for HTTP Status Codes returned in the required page header by servers when loading a web page. global $http_status_code; $http_status_code = [ // ~~~ officially known https codes 100 => ‘Continue’, 101 => ‘Switching Protocols’, 102 => ‘Processing’, // WebDAV; RFC 2518 103 => ‘Early Hints’, // RFC 8297 […]


Common HTTP response status codes

200 OK The request has succeeded and depends on the HTTP method (The most common response code): GET: the resource has been fetched & is transmitted in the message body. HEAD: the entity headers are in the message body. POST/PUT: result of the action is transmitted in the message body. 201 Created Is typically the […]