Web applications
Check Akismet queue offline
If you need to run akismet on a big queue, you can do it with this code and run it from the command line. Drop it at the root of your wordpress install (where is wp-config) and run it with the command line php. <?php require_once dirname(__FILE__) . “/wp-load.php”; if(!function_exists(‘get_plugins’)) { require_once ( ABSPATH . […]
$_SERVER[‘HTTP_X_FORWARDED_FOR’] returns multiple IPs, what to do?
Before reading this article, you should know that HTTP_X_FORWARDED_FOR should only be used for websites behind a proxy, otherwise you should use REMOTE_ADDR!! This article talks about getting the right visitor IP through HTTP_X_FORWARDED_FOR for applications behind a reverse proxy! You might have faced it as it’s not so well documented. Note that i’m using nginx as […]