The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem including Pear modules

Discussion in 'General Discussion' started by neo1001, Sep 17, 2007.

  1. neo1001

    neo1001 Registered

    Joined:
    Sep 17, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I have a problem including pear modules in my scripts, I´m just doing what cpanel says, add this line to my scripts:
    PHP:
    ini_set("include_path"'/home/blognost/php:' ini_get("include_path")  );
    Well here is a piece of my code:

    This is the header of the first page loading in my web:

    HTML:
    <?php include("../INCLUDES/head.php");?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
        <head>.......
    </html>
    
    And this is the header of head.php:

    PHP:
    <?php
        ini_set
    ("include_path"'/home/blognost/php:' ini_get("include_path")  );

        
    session_start();
        .
        .
        .
        .
        
    $Dbg = new PHP_Debug($options);
    Well, the problem appears when I call to the constructor of one pear module (in this case PHP_Debug), it returns this error:

    Fatal error: Class 'PEAR' not found in /home/blognost/public_html/proyecto/blogNosti/INCLUDES/head.php on line 50

    I don't know what I'm doing wrong, any suggestions?

    Thx.
     
Loading...

Share This Page