downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Examples> <Resource Types
Last updated: Fri, 20 Nov 2009

view this page in

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

FTP_ASCII (integer)
FTP_TEXT (integer)
FTP_BINARY (integer)
FTP_IMAGE (integer)
FTP_TIMEOUT_SEC (integer)

See ftp_set_option() for information.

The following constants were introduced in PHP 4.3.0.

FTP_AUTOSEEK (integer)

See ftp_set_option() for information.

FTP_AUTORESUME (integer)

Automatically determine resume position and start position for GET and PUT requests (only works if FTP_AUTOSEEK is enabled)

FTP_FAILED (integer)

Asynchronous transfer has failed

FTP_FINISHED (integer)

Asynchronous transfer has finished

FTP_MOREDATA (integer)

Asynchronous transfer is still active



add a note add a note User Contributed Notes
Predefined Constants
www.bossftp.com
07-Apr-2009 07:57
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 :(

Examples> <Resource Types
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites