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

PHP Home Page

Manual Table of Contents
Up to mSQL
Quick Reference
mSQL
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 page
* 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
Fri, 15 Sep 2000
msql_query 
Next page


msql_pconnect

(PHP3 <= 3.0.16, PHP4 )

msql_pconnect -- 持続的な mSQL 接続を開きます

説明

int msql_pconnect (string ホスト名)

成功した場合は、正の mSQL 持続リンク ID を返します。 エラーの場合はfalseを返します。

msql_pconnect()は、大きな違いが二つあること以外は msql_connect() と全く同様に動作します。

1番目の差異は、この関数は接続した際に同じホストにおいて すでに確立された(持続的な)リンクを見つけようとすることです。 そうしたリンクが見つかった場合、新たな接続を開く代わりに そのリンクへのIDが返されます。

2 番目は、スクリプトの実行終了時に SQL サーバーへの接続が 閉じられないということです。 代わりに、リンクは、次に使用するために開かれたままにされます。 (msql_close() は、msql_pconnect() により確立されたリンクを閉じません)

このため、この型のリンクは、'持続的' であると呼ばれます。


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
Fri, 15 Sep 2000
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.