HELP pear DB::Connect problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ralphie

    HELP pear DB::Connect problem

    Hello everyone,

    I was wonerding if anybody has a problem that when you try
    and instantiate DB class it just returns a blank page ... my code is

    function session() {
    1. $this->_oConn =& DB::connect(DSN );
    2. if (DB::isError($t his->_oConn) ) {
    3. catchExc($this->_oConn->getMessage() );
    4. }
    }

    I have the code in a class function, the class is supposed to
    authenticate a user and create a session, but when I try and
    instantiate the class and the program gets to line 1 I just get a
    blank.
    has anyone had this problem before ??

    Thanks
    Ralph
  • Jim Dabell

    #2
    Re: HELP pear DB::Connect problem

    Ralphie wrote:
    [color=blue]
    > Hello everyone,
    >
    > I was wonerding if anybody has a problem that when you try
    > and instantiate DB class it just returns a blank page ... my code is
    >
    > function session() {
    > 1. $this->_oConn =& DB::connect(DSN );
    > 2. if (DB::isError($t his->_oConn) ) {
    > 3. catchExc($this->_oConn->getMessage() );
    > 4. }
    > }
    >
    > I have the code in a class function, the class is supposed to
    > authenticate a user and create a session, but when I try and
    > instantiate the class and the program gets to line 1 I just get a
    > blank.
    > has anyone had this problem before ??[/color]

    I have experienced that, except it was with the PEAR mail interface. It
    happens when /usr/local/lib/php (or whatever is the path to your PHP
    include files) is not in your include path, if I remember correctly. I
    didn't investigate why it just came up with a blank page instead of
    erroring though.


    --
    Jim Dabell

    Comment

    • Martin Lucas-Smith

      #3
      Re: HELP pear DB::Connect problem




      [color=blue]
      > function session() {[/color]

      Surely this is not a legal name for a user-defined function? Try giving it
      a different name.

      [color=blue]
      > the program gets to line 1 I just get a blank.[/color]

      Do you mean the screen goes blank? What do your error logs say?




      Martin



      Comment

      • Ralphie

        #4
        Re: HELP pear DB::Connect problem

        Yes the screen goes blank, forgive me if I sound like a newbie,
        because I am, can u tell me where I might find the error log, because
        I did not see it in the php folder

        Martin Lucas-Smith <mvl22@cam.ac.u k> wrote in message news:<Pine.SOL. 4.44.0308261651 380.5125-100000@orange.c si.cam.ac.uk>.. .[color=blue][color=green]
        > > function session() {[/color]
        >
        > Surely this is not a legal name for a user-defined function? Try giving it
        > a different name.
        >
        >[color=green]
        > > the program gets to line 1 I just get a blank.[/color]
        >
        > Do you mean the screen goes blank? What do your error logs say?
        >
        >
        >
        >
        > Martin[/color]

        Comment

        Working...