By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,347 Members | 1,390 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,347 IT Pros & Developers. It's quick & easy.

HELP pear DB::Connect problem

P: n/a
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($this->_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
Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ralphie wrote:
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($this->_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 ??


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

Jul 16 '05 #2

P: n/a

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

the program gets to line 1 I just get a blank.


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


Martin

Jul 16 '05 #3

P: n/a
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 <mv***@cam.ac.uk> wrote in message news:<Pi*************************************@oran ge.csi.cam.ac.uk>...
function session() {


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

the program gets to line 1 I just get a blank.


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


Martin

Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.