downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

mysql_get_server_info> <mysql_get_host_info
[edit] Last updated: Fri, 17 May 2013

view this page in

mysql_get_proto_info

(PHP 4 >= 4.0.5, PHP 5)

mysql_get_proto_infoMySQL protokol sürüm bilgisini al

Açıklama

int mysql_get_proto_info ([ resource $bağlantı_belirteci ] )

MySQL protokol sürümünü döndürür.

Değiştirgeler

bağlantı_belirteci

MySQL bağlantısı. Eğer bağlantı belirteci belirtilmemişse mysql_connect() tarafından açılan son bağlantı kullanılmaya çalışılır. Eğer böyle bir bağlantı yoksa mysql_connect() değiştirgesiz olarak çağrılmış gibi bir bağlantı oluşturmaya çalışır. Hiçbir bağlantı yoksa ve yenisi de kurulamazsa E_WARNING seviyesinde bir hata üretilir.

Dönen Değerler

Başarı durumunda MySQL protokol sürümünü, hata durumunda FALSE döndürür.

Örnekler

Örnek 1 - mysql_get_proto_info() örneği

<?php
$link 
mysql_connect('localhost''mysql_user''mysql_parolası');
if (!
$link) {
    die(
'Bağlanamadı: ' mysql_error());
}
printf("MySQL protokol sürümü: %s\n"mysql_get_proto_info());
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

MySQL protokol sürümü: 10

Ayrıca Bakınız



add a note add a note User Contributed Notes mysql_get_proto_info - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites