imap_timeout Set or fetch imap timeout
mixed imap_timeout ( int $timeout_type [, int $timeout = -1 ] )
timeout_type
One of the following: IMAP_OPENTIMEOUT, IMAP_READTIMEOUT, IMAP_WRITETIMEOUT, or IMAP_CLOSETIMEOUT.
timeout
The timeout, in seconds.
<?php
echo "The current opentimeout is " . imap_timeout(IMAP_OPENTIMEOUT) . "\n";
echo "The current read timeout is " . imap_timeout(IMAP_READTIMEOUT) . "\n";
echo "The current write timeout is " . imap_timeout(IMAP_WRITETIMEOUT) . "\n";
echo "The current close timeout is " . imap_timeout(IMAP_CLOSETIMEOUT) . "\n";
?>
default:
The current opentimeout is 60
The current read timeout is 60
The current write timeout is 60
The current close timeout is 0
mixed imap_timeout ( int $timeout_type [, int $timeout = -1 ] )
timeout_type
One of the following: IMAP_OPENTIMEOUT, IMAP_READTIMEOUT, IMAP_WRITETIMEOUT, or IMAP_CLOSETIMEOUT.
timeout
The timeout, in seconds.
<?php
echo "The current opentimeout is " . imap_timeout(IMAP_OPENTIMEOUT) . "\n";
echo "The current read timeout is " . imap_timeout(IMAP_READTIMEOUT) . "\n";
echo "The current write timeout is " . imap_timeout(IMAP_WRITETIMEOUT) . "\n";
echo "The current close timeout is " . imap_timeout(IMAP_CLOSETIMEOUT) . "\n";
?>
default:
The current opentimeout is 60
The current read timeout is 60
The current write timeout is 60
The current close timeout is 0