I'd like to turn on error reporting in the document as opposed to the php.ini file on my hosting company's server. According to the manual these functions set the error_reporting directive at runtime so inserting any of these should work, but I'm just getting a blank page. Any suggestions?
error_reporting(E_ALL);
error_reporting(-1);
ini_set('error_reporting', E_ALL);
~0instead of-1for enabling all errors - but it would only make a difference on an system that does not use two's complement. Also please note that because you are enabling errors at run time, compile time errors (like parse errors) will still not be affected by this, because the code that enables error reporting will never be executed.