Solved

Problems with FirePHP

Posted on 2012-04-01
2
689 Views
Last Modified: 2012-04-05
I am trying to use FirePHP to debug a web page.   I cannot get FirePHP to load properly.  When I try to use the FirePHP, I get the following error:

Warning: require_once(FirePHPCore/FirePHP.class.PHP): failed to open stream: No such file or directory in /var/www/contactform.php on line 15 Fatal error: require_once(): Failed opening required 'FirePHPCore/FirePHP.class.PHP' (include_path='.:/usr/share/php') in /var/www/contactform.php on line 15

I am developing on Ubuntu 11.04 using apache.  My code is in: /var/www

Here's more info
$ls /usr/share/php
    This matches the path in my error message.
    FirePHPCore lives here

$sudo /etc/init.d/apache2 restart
    Apache restarts fine but the I still get the error.
    Clearing the browser history doesn't help.

I don't know what to do next.

How do I fix this problem?
0
Comment
Question by:tmonteit
2 Comments
 
LVL 12

Expert Comment

by:larsrohr
ID: 37794620
Do the permissions on your FirePHPCore directory allow the apache user read and execute/transverse (rx) access?  Perhaps the apache user simply cannot access your FirePHP files.
0
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 500 total points
ID: 37795668
In /var/www create a phpinfo.php file  

<?php phpinfo(); ?>

Execute it and ensure your include path has the /usr/share/php directory in it.

If it does then look at file permissions as was suggested above.

Check file names for proper case.  PHP is case-sensitive and personally I haven't seen many files called filename.PHP.  It is usually a lower-case .php.  Not familiar with FirePHP, though.

Hope that helps...
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This article discusses four methods for overlaying images in a container on a web page
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now