★ wanayoo — archive 1999 http://www.php.net/manual/fr/function.msql-pconnect.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to mSQL
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
mSQL
* msql
* msql_affected_rows
* msql_close
* msql_connect
* msql_create_db
* msql_createdb
* msql_data_seek
* msql_dbname
* msql_drop_db
* msql_dropdb
* msql_error
* msql_fetch_array
* msql_fetch_field
* msql_fetch_object
* msql_fetch_row
* msql_fieldname
* msql_field_seek
* msql_fieldtable
* msql_fieldtype
* msql_fieldflags
* msql_fieldlen
* msql_free_result
* msql_freeresult
* msql_list_fields
* msql_listfields
* msql_list_dbs
* msql_listdbs
* msql_list_tables
* msql_listtables
* msql_num_fields
* msql_num_rows
* msql_numfields
* msql_numrows
* msql_pconnect
* msql_query
* msql_regcase
* msql_result
* msql_select_db
* msql_selectdb
* msql_tablename

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: msql_pconnect
View the source code for this pageSearch the site



Previous page
 msql_numrows
 Updated
Sun, 11 Feb 2001
msql_query 
Next page


msql_pconnect

(PHP 3, PHP 4 )

msql_pconnect -- Ouvre une connexion persistante à un serveur mSQL.

Description

int msql_pconnect ([string hostname [, string hostname[:port] [, string username [, string password]]]])

Retourne un identifiant de connexion persistante à un serveur mSQL en cas de succès, et FALSE sinon.

msql_pconnect() se comporte presque comme msql_connect() mais avec deux différences majeures.

D'abord, lors de la connexion, msql_pconnect() cherche si une connexion persistante a déjà été ouverte sur le même hôte. Si une telle connexion est trouvée, elle sera utilisée.

Deuxièmement, la connexion au serveur SQL ne sera pas terminée lors de la fin de l'exécution du script. A la place, le lien restera ouvert pour d'autres connexions futures. (msql_close() ne fermera pas un lien ouvert par msql_pconnect()).

C'est pourquoi une telle connexion est considérée comme 'persistante'.


User Contributed Notes: msql_pconnect


mlemos@acm.org
31-Dec-1998 12:13
If the hostname is not specified, the connection is established by the
means of a Unix domain socket, being then more efficient then a localhost
TCP socket connection.



 About Notes


Previous page
 msql_numrows
 Updated
Sun, 11 Feb 2001
msql_query 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.