PHP.nl

imap_timeout

imap_timeout

Set or fetch imap timeout

 **imap_timeout** int $timeout_type int $timeout

Sets or fetches the imap timeout.

timeout_type One of the following: , , , or . IMAP_OPENTIMEOUT``IMAP_READTIMEOUT``IMAP_WRITETIMEOUT``IMAP_CLOSETIMEOUT

timeoutThe timeout, in seconds.

If the parameter is set, this function returns true on success and false on failure. timeout

If is not provided or evaluates to -1, the current timeout value of is returned as an integer. timeout``timeout_type

Voorbeeld: example

<?php

echo "The current read timeout is " . imap_timeout(IMAP_READTIMEOUT) . "\n";

?>