Showing query time and closing connection id



i'm just acquainted to this php -mysql not so long. i have several
issues i came across while developing my own localhost site.
1) what command i should use to show query time, such as shown
automatically on prompt.
(Query took 0.3435 sec)
I have seen sql and php manual but none addressed this issue.
2) i connected to db with mysql_pconnect() however without storing the
return value. Later i tried to close several openned connection
numbers which were shown :
$p = mysql_list_processes();
while ($row = mysql_fetch_row($p)) {
list($id,...) = $row;
echo "link: $id<br/>";
}
there were several numbers shown from $id. Assuming 5,6, 10 were
listed, i thought i was able to close any numbers thereof and i picked
up value 5 and executed mysql_close(5); and later i checked with
mysql_list_processes. connection number 5 was still active. how should
i do to close this connection, does this relate to persistent
connection ?
.



Relevant Pages

  • Re: 7.1-PRERELEASE: arcmsr write performance problem
    ... check how large is your PHP sessions' directory. ... connection and I seem to be able to get the system into the state a ... never seems to recover unless I reboot it or somehow find the process ... The problem reports mentions using 'kill -STOP' ...
    (freebsd-stable)
  • Re: 7.1-PRERELEASE: arcmsr write performance problem
    ... check how large is your PHP sessions' directory. ... either of these two running after a fresh reboot and we will see if this ... never seems to recover unless I reboot it or somehow find the process ... As the processes do get stuck in the ufs mode from what I can tell I thought this was an interesting connection. ...
    (freebsd-stable)
  • Re: [PHP] Download speed limit
    ... Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does not throttle the connection. ... Subject: [PHP] Download speed limit ...
    (php.general)
  • Re: [PHP] fsockopen in phpmailer and tls
    ... now running the latest sendmail and it is still failing. ... "PHP Warning: fsockopen: SSL operation failed with code 1. ... PHP is v5.2.6 and phpinfo shows that ssl and tls support are both ... specify tls for a connection that initially starts off as a clear text ...
    (php.general)
  • Re: How to avoid exposing connectstring?
    ... > I'm using a MySQL database from within some Perl and PHP cgi's. ... > To make the connection, I have to supply the username/password ...
    (comp.lang.php)