Re: closing database connection prior to redirection?

From: Date: Thu, 14 Dec 2000 18:26:13 +0000
Subject: Re: closing database connection prior to redirection?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5254@lists.php.net to get a copy of this message
With PHP, when you hit the end of a script (which redirecting using Header(Location...) or Javascript or a Meta tag is), then as long as you don't use persistent conncetions, PHP automatically cleans up after the script including closing existing DB connections. Matthew At 01:59 AM 12/15/2000 +0800, you wrote:
I have a script that redirects itself to another location after it connects to a database and makes use of it. If we connect to a database, do we have to close the connection prior to redirection or end of script? What happens if we don't close the connection. Any help would be greatly appreciated. Thanks in advance! Michael -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#5254) next »