I don't think it depends of PHP configuration. Because what if my script was written in Perl or else????. Grant wrote: > > Frist ,How in script could I Ping? > > Second,from command line Ping also hangs. > > Don't ping. Let PHP control whether or not it can connect. It will > time out. The problem is you have persistent connections set in > your php.ini file. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html