PHP Doku:: Clears IMAP cache - function.imap-gc.html

Verlauf / Chronik / History: (10) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzE-Mail-relevante ErweiterungenIMAP, POP3 and NNTPIMAP Funktionenimap_gc

Ein Service von Reinhard Neidl - Webprogrammierung.

IMAP Funktionen

<<imap_fetchstructure

imap_get_quota>>

imap_gc

(PHP 5 >= 5.3.0)

imap_gcClears IMAP cache

Beschreibung

string imap_gc ( resource $imap_stream , int $caches )

Purges the cache of entries of a specific type.

Parameter-Liste

imap_stream

Eine von imap_open() zurückgegebene IMAP-Verbindung.

caches

Specifies the cache to purge. It may one or a combination of the following constants: IMAP_GC_ELT (message cache elements), IMAP_GC_ENV (enveloppe and bodies), IMAP_GC_TEXTS (texts).

Rückgabewerte

Returns TRUE.

Beispiele

Beispiel #1 imap_gc() example

<?php

$mbox 
imap_open("{imap.example.org:143}""username""password");

imap_gc($mboxIMAP_GC_ELT);

?>


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
Anonymous
23.07.2009 21:47
If you notice that you're program's memory usage is increasing (as observed using ps) while calling the imap functions, calling this function should free that memory.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)