473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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($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
3 4128
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michel P. | last post by:
Hi, I'm trying to install the bcompiler extension, under PHP 5.0.4 / Apache / FreeBSD, but can't finalize the install process... Has anybody allready done it ? I'm using the recommended...
1
by: Claus van de Vlierd | last post by:
Hello , a) in the following script (under RedHat AS3 with PHP 4.3.2 ) I make a "DB::connect" to an existing "mysql" database named "docu_files_of_cvdv" . The strange thing is : it works --...
0
by: Ren, Ziheng | last post by:
Hi, i have already found a xindice based java gui. but it appears always a big problem from the xupdate functions. If i tip some commands in and try to execute them, it will appear an exception,...
1
by: Tim Jowers | last post by:
OK, I've hit the problem enough now to want to know what is the easy way :-) Anybody know? I read in microsoft.public.sqlserver.xml group about doing this: 1) Create an XML schema from the db...
5
by: lwoods | last post by:
When I execute the following script I can connect using 'mysqli_connect' but I get a "DB Error: Not Found" when I display the $db->Message() after attempting the DB::Connect. And, "yes", the...
3
by: MadCrazyNewbie | last post by:
Hey Again Group, Sorry to be a pain:( On my App I have serveral forms All with a Database Connection, and then Several Data Adapters. Is this the best way to do it? i.e have a seperate...
3
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! Is it possible to alter tablespace so that you don't connect to the database? The problem I have is this. I got a DB backup from a machine with 16 Gb of RAM. There was a bufferpool set to...
9
by: Peter Lux | last post by:
I'm fairly new to c#, but not new to programming. I'm tasked with rewriting our Gupta/Sqlwindows apps (5 years worth of development) in dot Net. The main reason is that virtually no one knows the...
1
by: peck2000 | last post by:
Here's a strange problem. I've built an Classic ASP application with an Access 2003 DB on the backend on my website to track my comic book collection. The site is running on a dedicated Win2003...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.