Latest web development tutorials
×

PHP curso

PHP curso PHP breve introducción PHP instalar PHP gramática PHP variable PHP echo/print PHP Tipos de datos PHP constante PHP cadena PHP operadores PHP If...Else PHP Switch PHP formación PHP Ordenación de un conjunto PHP superglobals PHP While circulación PHP For circulación PHP función PHP Las variables mágicas PHP Los espacios de nombres PHP Orientado a Objetos

PHP formulario

PHP formulario PHP autenticación de formularios PHP formulario - Los campos necesarios PHP formulario - correo electrónico de verificación y la URL PHP instancia completa formulario PHP $_GET variable PHP $_POST variable

PHP Tutorial avanzado

PHP Las matrices multidimensionales PHP fecha PHP contener PHP expediente PHP Cargar archivo PHP Cookie PHP Session PHP E-mail PHP seguridad E-mail PHP Error PHP Exception PHP filtro PHP filtro avanzado PHP JSON

PHP 7 nuevas características

PHP 7 nuevas características

PHP base de datos

PHP MySQL breve introducción PHP MySQL conexión PHP MySQL La creación de una base de datos PHP MySQL Crear una tabla de datos PHP MySQL insertar datos PHP MySQL Insertar datos múltiples PHP MySQL Sentencias preparadas PHP MySQL leer datos PHP MySQL WHERE PHP MySQL ORDER BY PHP MySQL UPDATE PHP MySQL DELETE PHP ODBC

PHP XML

XML Expat Parser XML DOM XML SimpleXML

PHP & AJAX

AJAX breve introducción AJAX PHP AJAX base de datos AJAX XML AJAX búsqueda en tiempo real AJAX RSS Reader AJAX voto

PHP Manual de referencia

PHP Array PHP Calendar PHP cURL PHP Date PHP Directory PHP Error PHP Filesystem PHP Filter PHP FTP PHP HTTP PHP Libxml PHP Mail PHP Math PHP Misc PHP MySQLi PHP PDO PHP SimpleXML PHP String PHP XML PHP Zip PHP Timezones PHP Procesamiento de imágenes PHP RESTful

función de PHP ftp_set_option ()

PHP FTP Referencia Completar PHP FTP Referencia

Definición y Uso

ftp_set_option () función establece la conexión FTP varias opciones de tiempo de ejecución.

Si tiene éxito, la función devuelve TRUE. Si se produce un error, devuelve FALSO.

gramática

ftp_set_option(ftp_connection,option,value)

参数 描述
ftp_connection 必需。规定要使用的 FTP 连接。
option 必需。规定要设置的运行时选项。可能的值:
  • FTP_TIMEOUT_SEC
  • FTP_AUTOSEEK
value 必需。设置 option 参数的值。

如果 option 参数设置为 FTP_TIMEOUT_SEC,则表示它将对网络操作的最大可执行时间做出限制(单位:秒)。

如果 option 参数设置为 FTP_AUTOSEEK,则该参数必须是 TRUE(打开自动搜索功能)或者 FALSE(关闭自动搜索功能)。



Ejemplos

<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");

ftp_set_option($conn,FTP_TIMEOUT_SEC,120);

ftp_close($conn);
?>


PHP FTP Referencia Completar PHP FTP Referencia