note 55345 added to function.imap-headers
| From: | me at _spam_koenpasman dot nl | Date: | Sun, 31 Jul 2005 17:41:35 +0000 |
| Subject: | note 55345 added to function.imap-headers | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92837@lists.php.net to get a copy of this message | ||
A reaction to consult at pmkmedia dot com:
The negative results you are getting are due to your usage of microtime(). microtime() returns a
string like this:
0.52234000 1122834868
First, the microseconds, then a space, and then a Unix Timestamp. A function like this corrects
this:
<?php
function getmicrotime() {
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
$first = getmicrotime();
/* code.. */
echo 'parsetime: '.(getmicrotime()-$first);
?>
Then you won't get any negative parsetimes.
----
Submitter IP: 194.109.193.74
----
Manual Page -- http://www.php.net/manual/en/function.imap-headers.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55345
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55345&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55345&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55345&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55345&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55345&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55345&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55345&report=yes
Search -- http://master.php.net/manage/user-notes.php