Re: DB connection pb
| From: | Daniel Convissor | Date: | Fri, 22 Dec 2000 19:17:26 +0000 |
| Subject: | Re: DB connection pb | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31618@lists.php.net to get a copy of this message | ||
> I use on aserver php3.0.6 and everything was working fine for months..
> but now, when I try to do a pg_connect (postgresql db) in a file included
> in an other (with include) I have :
>
> Warning: Unable to connect to PostgresSQL server: connectDB():
> getprotobyname failed in /opt/htdocs/html/php/atos_lib.phtml on line 3
>
> If I do my connection outside the included fine, it s ok...
Your code in the included file is flawed. How, we can't say because you
haven't shown us the code of the main and included files.
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409