Forum und email

ftp_get_option

(PHP 4 >= 4.2.0, PHP 5)

ftp_get_option — Haalt verschillende data op van de huidige FTP stream

Beschrijving

mixed ftp_get_option ( resource $ftp_stream , int $option )

Note: Deze functie is alleen aanwezig in CVS.

Geeft de waarde terug als het goed ging of FALSE als de gegeven option niet ondersteunt is. In het laatste geval wordt ook nog een waarschuwings bericht weergeven.

Deze functie geeft de waarde van de gevraagde option terug van de aangegeven ftp_stream . Op dit moment zijn de volgende opties ondesteund:

Ondersteunde FTP opties
FTP_TIMEOUT_SEC Geeft de huidige timeout terug.

Example#1 ftp_get_option() voorbeeld

// Haal de timeout op van de FTP stream
$timeout = ftp_get_option($conn_id, FTP_TIMEOUT_SEC);