|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-13 12:43 UTC] thies@php.net
[2001-06-08 10:58 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 23:00:01 2025 UTC |
The script below doesn't remove the database because the second link is not closed and the postgres will not drop a database if there is a connection using it. <?php $id1 = pg_connect("host=cheese port=7655 user=zendtest password=******** dbname=template1"); pg_exec($id1, "CREATE DATABASE zendtest"); pg_close($id1); $id2 = pg_connect("host=cheese port=7655 user=zendtest password=dnez dbname=zendtest"); pg_close($id2); $id3 = pg_connect("host=cheese port=7655 user=zendtest password=******** dbname=template1"); pg_exec($id3, "DROP DATABASE zendtest"); pg_close($id3); ?>