Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / mysql_thread_id
mysql_thread_id

mysql_thread_id

(PHP 4 CVS only)

mysql_thread_id -- Zeigt die aktuelle Thread ID an

Beschreibung

int mysql_thread_id ( [resource Verbindungs-Kennung])

mysql_thread_id() liefert die aktuelle Thread ID. Ist die Verbindung abgerissen und Sie bauen diese wieder mit mysql_ping() auf, wechselt die Thread ID. Das bedeutet, Sie sollten die Thread ID nicht abfragen und für spätere Verwendung speichern. Sie sollten diese zu einem Zeitpunkt abfragen an dem Sie die Thread ID verwenden möchten.

Beispiel 1. mysql_thread_id() Beispiel

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$thread_id = mysql_thread_id($link);
if ($thread_id){
    printf ("Aktuelle Thread ID ist %d\n", $thread_id);
}
?>

Das obige Beispiel gibt folgendes aus:
Aktuelle Thread ID ist 73

See also: mysql_ping(), mysql_list_processes().


© 1998-2007 Gold Vision Communications All Rights Reserved.