Doc #53218 [Opn->Bgs]: couldnt able to connect PHP with POSTGRESQL
| From: | kalle@php.net | Date: | Wed, 03 Nov 2010 20:50:25 +0000 |
| Subject: | Doc #53218 [Opn->Bgs]: couldnt able to connect PHP with POSTGRESQL | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5459@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53218&edit=1
ID: 53218
Updated by: kalle@php.net
Reported by: lakshmi at nace dot co dot in
Summary: couldnt able to connect PHP with POSTGRESQL
-Status: Open
+Status: Bogus
Type: Documentation Problem
Package: PostgreSQL related
Operating System: Linux
PHP Version: 5.2.14
Block user comment: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Please use a PHP support forum or one of the mailing lists, this is not
a support area, Thanks
Previous Comments:
------------------------------------------------------------------------
[2010-11-01 12:54:02] lakshmi at nace dot co dot in
Description:
------------
<?php
$database=pg_connect("host=localhost dbname=test user=postgres");
if(!$database)
{
die("Could not connect -> " .pg_last_error().
pg_errormessage($database));
}
?>
Test script:
---------------
<?php
$database=pg_connect("host=localhost dbname=test user=postgres");
if(!$database)
{
die("Could not connect -> " .pg_last_error().
pg_errormessage($database));
}
else
echo "database connected";
?>
while executing above mentioned program it is throwing aPHP Fatal error:
Call to undefined function pg_connect() in /srv/www/htdocs/pg.php on
line 2
Expected result:
----------------
database connected.
Hi,
Can anyone tell me what would be the mistake in the above mentioned
program,
when I execute this program simply it is throwing an error as : Call to
undefined function pg_connect(),I can able to connect from psql
separately
but while trying to connect it from php it is throwing error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53218&edit=1