WPSandbox

PHP Warning: file_get_contents failed to open stream: Connection refused in script.php

You can create a temp file in your document root folder and after the tests you will need to delete it so you don’t expose extra sever info to always curious spammers/hackers. if you get this php error you may need to check your php.ini settings to ensure that the allow_url_fopen ini setting in the […]

PHP Warning: file_get_contents failed to open stream: Connection refused in script.php Read More »

Xdebug Var Dump Settings

How to Prevent xDebug from Truncating var_dump() Output

xdebug is an awesome debugging extension and it has saved me so much time when developing and also when troubleshooting php scripts and WordPress plugins. When you’re working with xdebug in your PHP development environment and using functions like var_dump() to output some debugging data (logging is better but sometimes you have to do it),

How to Prevent xDebug from Truncating var_dump() Output Read More »

WP Security Padlocks

What PHP functions to disable to secure your WordPress server

Why disable certain PHP functions When securing a PHP server, it’s critical to disable some functions that allow attackers to execute harmful commands or scripts. PHP Functions like exec, system, and shell_exec are used to execute external commands which poses a security risk. This could be called by a script you uploaded or by a

What PHP functions to disable to secure your WordPress server Read More »

How to Fix WordPress Multisite Redirect Loop Network Admin

So you’ve decided to try WordPress Multisite?Awesome! WordPress Multisite has its uses even though many people don’t usually recommend it.It is probably because not many WordPress plugins are compatible with it. You can use WordPress multisite for different subsections of the site. e.g. support, help, developer docs etc. i.e. everything that’s related to a product

How to Fix WordPress Multisite Redirect Loop Network Admin Read More »