Monday, 19 August 2013

Error while installing FirePHP in firefox

Error while installing FirePHP in firefox

I am trying to install FirePHP in firefox for debugging purposes. But its
not done successfully. I firstly downloaded FirePhpCore and included
following files
/www/FirePHPCore/fb.php
/www/FirePHPCore/FirePHP.class.php
/www/FirePHPCore/LICENSE
After this i included require_once('FirePHPCore/FirePHP.class.php') in
index.php of www. So now file i as-
<?php
// Page créé par Shepard [Fabian Pijcke] <Shepard8@laposte.net>
// Arno Esterhuizen <arno.esterhuizen@gmail.com>
// et Romain Bourdon <romain@anaska.com>
//
// icônes par Mark James <http://www.famfamfam.com/lab/icons/silk/>
require_once('FirePHPCore/FirePHP.class.php');
//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = '../wampmanager.conf';
//chemin jusqu'aux fichiers alias
$aliasDir = '../alias/';
// on charge le fichier de conf locale
if (!is_file($wampConfFile))
die ('Unable to open WampServer\'s config file, please change path in
index.php file');
//require $wampConfFile;
$fp = fopen($wampConfFile,'r');
--------
But when i am trying to run "localhost/index.php" its showing following
code in browser
require_once 'FirePHP.class.php'; if($_SERVER['REMOTE_ADDR'] ==
"123.456.789.123"){ $GLOBALS['firephp'] = FirePHP::getInstance(true); //
make an array to trace the execution of methods, functions and included
files $GLOBALS['firephptrace'] = array(); global $firephp;
$firephp->setEnabled(true); $options = array('maxObjectDepth' => 10,
'maxArrayDepth' => 20, 'useNativeJsonEncode' => true, 'includeLineNumbers'
=> true); $firephp->getOptions(); $firephp->setOptions($options); //
Optionally log all errors, exceptions, and assertion errors to Firebug
$firephp->registerErrorHandler($throwErrorExceptions=true);
firephp->registerExceptionHandler(); $firephp->registerAssertionHandler(
$convertAssertionErrorsToExceptions=true, $throwAssertionExceptions=false
); } else { $GLOBALS['firephp']->setEnabled(false); }
Can someone please help me setup this FirePHP ?

No comments:

Post a Comment