ftp_set_option

ftp_set_option -- Set miscellaneous runtime FTP options

Description

bool ftp_set_option ( resource ftp_stream, int option, mixed value)

הערה :

טבלה 1 .

Changes the timeout in seconds used for all network related functions . Parameter value has be to of type int and must be greater than 0 .


דוגמה 1 . ftp_set_option( ) example

 
/

 
/

 
Set

 
the

 
network

 
timeout

 
down

 
to

 
10

 
seconds

 
ftp_set_option(

 
$conn_id

 
,

 
FTP_TIMEOUT_SEC

 
,

 
10)

 
;