In some PHP versions, the FTP_ASCII = 0, FTP_BINARY = 1, and in others, FTP_ASCII = 1, FTP_BINARY = 2.
So, you're strongly recommended to use to these predefined constants, and don't replace them with real values.
This makes me suck for a while, when I change my web hosting :(
Constantes pré-definidas
As contantes abaixo são definidas por esta extensão e somente estarão disponíveis quando a extensão foi compilada com o PHP ou carregada dinamicamente durante a execução.
- FTP_ASCII (integer)
- FTP_TEXT (integer)
- FTP_BINARY (integer)
- FTP_IMAGE (integer)
- FTP_TIMEOUT_SEC (integer)
-
Veja ftp_set_option() para informação.
As seguintes constantes foram introduzidas no PHP 4.3.0.
- FTP_AUTOSEEK (integer)
-
Veja ftp_set_option() para informações.
- FTP_AUTORESUME (integer)
-
Determina automaticamente a posição de reinício e início para requisições GET e PUT (funciona somente se FTP_AUTOSEEK estiver ativada)
- FTP_FAILED (integer)
-
A transferência assincronoma falhou
- FTP_FINISHED (integer)
-
A transferência assincronoma terminou
- FTP_MOREDATA (integer)
-
A transferência assincronoma ainda esta ativa
User Contributed Notes
Constantes pré-definidas
Constantes pré-definidas
www.bossftp.com
07-Apr-2009 02:57
07-Apr-2009 02:57

Tipos Resource