PHP 8.6.0 Beta 1 is available for testing

imap_timeout

(PHP 4 >= 4.3.3, PHP 5, PHP 7, PHP 8)

imap_timeoutConfigura o devuelve el timeout

Descripción

function imap_timeout(int $timeout_type, int $timeout = -1): int |bool

Define o devuelve el timeout imap.

Parámetros

timeout_type

Un valor entre los siguientes: IMAP_OPENTIMEOUT , IMAP_READTIMEOUT , IMAP_WRITETIMEOUT , o IMAP_CLOSETIMEOUT .

timeout

El timeout, en segundos.

Valores devueltos

Si el argumento timeout está definido, esta función devuelve true en caso de éxito y false si ocurre un error.

Si timeout no se proporciona o si se evalúa a -1, el timeout actual será devuelto como un int .

Ejemplos

Ejemplo #1 Ejemplo con imap_timeout()

<?php
echo "El timeout actual es " . imap_timeout(IMAP_READTIMEOUT) . "\n";
?>

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /