how to debug a php server code example Example: how to debug in php ini_set('display_errors', 'On'); error_reporting(E_ALL);