Folowing this question by CountZero, apparently i'm facing same problem here. When my site trying to open connection with the database, SOMETIME (Not Always) i get following error:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. in E:\htdocs\trial_pg\client_1a.php on line 3
İşte benim client1a.php script:
<?php
$connString = 'dbname=movies user=xxxxxx password=xxxxxx';
$connHandler = pg_connect($connString);
echo 'Connected to '.pg_dbname($connHandler);
?>
Ben bağlantıyı test etmek için tekrar tekrar sayfayı (F5) yenileyin, özellikle bu, sık sık olur. Ben postgresql ile yeniyim, ve bu benim sitenin gelişen ortamı:
OS:, Windows 7 Professional
Web Server: Apache/2.2.14 (Win32) DAV / 2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
PHP: 5.3.1
PostgreSQL: 8.4.3
Are there any configuration i miss? Any hints?
Teşekkürler!