Why is it that
<?php
include_once('FirePHPCore/fb.php');
ob_start();
$firephpoptions = array('maxObjectDepth' => 10,'maxArrayDepth' => 20,'useNativeJsonEncode' => FALSE,'includeLineNumbers' => TRUE);
FB::setOptions($firephpoptions);
FB::setEnabled(TRUE); // Disable on production server - otherwise it's a security risk
FB::info("Firebug ready to go!");
?>
works but
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Firebug Test</title>
</head>
<body>
<?php
include_once('FirePHPCore/fb.php');
ob_start();
$firephpoptions = array('maxObjectDepth' => 10,'maxArrayDepth' => 20,'useNativeJsonEncode' => FALSE,'includeLineNumbers' => TRUE);
FB::setOptions($firephpoptions);
FB::setEnabled(TRUE); // Disable on production server - otherwise it's a security risk
FB::info("Firebug ready to go!");
?>
</body>
</html>
throws the error...
PHP Fatal error: Uncaught exception 'Exception' with message 'Headers already sent in /Applications/MAMP/htdocs/rssscraper/svn/index copy.php on line 9. Cannot send log data to FirePHP. You must have Output Buffering enabled via ob_start() or output_buffering ini directive.' in /Applications/MAMP/includes/FirePHPCore/FirePHP.class.php:950