Even after editing the c:\winnt\system32\php.ini file, the problem remains as it is. It's giving error at very first line where I am trying to connect with database.
My code is like:
File - testcon.php
<?
$connString = "host=localhost port=5432 dbname=excampus user=www passward=www";
$conn = pg_connect($connString);
$sql = "SELECT name FROM test;";
$result = pg_query($conn, $sql);
$row = pg_fetch_object($result, 0);
echo "Name: " .$row;
?>
And error is:
Fatal error: Call to undefined function pg_connect() in D:\Apache\Apache2\htdocs\testcon.php on line 4
Is there anything I am not setting properly?
Please help