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

PHP Home Page

Manual Table of Contents
Up to mSQL
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian 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
Manual: msql_connect
View the source code for this pageSearch the site



Previous page
 msql_close
 Updated
Sat, 12 Aug 2000
msql_create_db 
Next page


msql_connect

(PHP3 , PHP4 )

msql_connect -- Open mSQL connection

Description

int msql_connect (string hostname)

Returns a positive mSQL link identifier on success, or false on error.

Msql_connect() establishes a connection to a mSQL server. The hostname argument is optional, and if it's missing, localhost is assumed.

In case a second call is made to msql_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned.

The link to the server will be closed as soon as the execution of the script ends, unless it's closed earlier by explicitly calling msql_close().

See also msql_pconnect(), msql_close().


User Contributed Notes: msql_connect


mlemos@acm.org
31-Dec-1998 12:11
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_close
 Updated
Sat, 12 Aug 2000
msql_create_db 
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.