It lists MySQL processes
Example
<?php
$conn=mysql_connect(“localhost”, “root”, “phpcode”) or die( mysql_error());
echo “<pre>”;
$process= mysql_list_processes($conn);
while ($row = mysql_fetch_assoc($process)) {
print_r($row);
}
?>
Output
Array
(
[Id] => 1061
[User] => root
[Host] => localhost
[db] =>
[Command] => Processlist
[Time] => 0
[State] =>
[Info] =>
)