Lets say I have some code:
<?php
echo "Hello Everybody!";
echo "<br/>" ;
$var1 = 23 ;
var_dump($var1) ;
$str = <<<HERE
some random text
more random strings
HERE;
echo $str ;
?>
Now running this as index.php on localhost , gives a blank page. Thats probably because there is some error in the code. Now is there something(editor,compiler,whatever) that will tell me exactly where and what my error is ?
Currently I use one of those portable servers (XAMP , netserver,uniserver) to run my php pages, which works good , but it doesn’t tell me what errors are there in my code.
Thanks
The tool you should use for this is PHP.
Make sure
error_reportingis set to something high, such asE_STRICT: