- Code: Select all
error_reporting(E_ALL);
ini_set('display_errors',1);
will display all PHP errors (which are often hidden/not displayed depending on the PHP settings used) when running a script.
I just used it to find a (stupid) problem I was having. I couldn't for the life of me work out why form contents were not being recovered with $_POST, when in fact as I discovered in the end, they actually were and it was a stupid mistake after that causing the unexpected outcome (the variables holding the $_POST data being empty).
The mistake was
- Code: Select all
$var = strip_tags($_POST["var"]);
$var= mysql_real_escape_string($var);
