debug php
/*add in front of code to show all erros */
error_reporting(E_ALL);
ini_set("display_errors", 1);
/* kkk */
$fp = fopen("/tmp/kurtdebug", "w");
$str = '';
ob_start();
var_dump($var);
$vardump = ob_get_clean();
$str .= 'vardump: '.$vardump."\n";
$str .= ' :'.$var->$para.' : '.$var->$para;
foreach ($array as $key => $val) {
echo "$key = $val\n";
}
fwrite($fp, $str. "\n");
fclose($fp);
Written by teknonono
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Related Tags
#php
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#