RE: [PHP-GENERAL] php + postgresql: undefined function pg_connect()...?
| From: | Jason | Date: | Thu, 15 Jun 2000 19:07:52 +0000 |
| Subject: | RE: [PHP-GENERAL] php + postgresql: undefined function pg_connect()...? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1988@lists.php.net to get a copy of this message | ||
I know in the manual it tells you to do the connect that way but I've found
it works for me like this:
$link = pg_connect("dbname=testdb user=blah password=blah host=blah");
You can leave out what you don't need or add things like port=
Jason
> -----Original Message-----
> From: Michael Teter [mailto:michael_teter@hotmail.com]
> Sent: Thursday, June 15, 2000 12:57 PM
> To: php-general@lists.php.net
> Subject: [PHP-GENERAL] php + postgresql: undefined function
> pg_connect()...?
>
>
> hi. I've got an error that I can't figure out.
>
> "Fatal error: Call to unsupported or undefined function pg_connect() in
> /home/httpd/html/query.php3 on line 8"
>
> here's the code for line 8:
> $db_conn = pg_connect ("", "", "", "",
> "testdb");
>
> I know my database works (from using interactive sql). I know php3 in
> general works, as I've done a couple of test programs.
>
> I did go into my php3.ini file and turn on extension=pgsql.so. then I
> restarted everything.
>
> any clues?
>
> many thanks
> michael teter
>
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
_______________________________________________________
Site Design, Hosting, and E-Commerce at www.webpipe.net