PHP Wysardry
PHP Manual

PHP documentation.



Home / PHP / Manual / ...



PHP Manual
Prev Next

ftp_put

(3.0.13 - 3.0.18 only, PHP 4 >= 4.0.0)

ftp_put -- Uploads a file to the FTP server.

Description

bool ftp_put (resource ftp_stream, string remote_file, string local_file, int mode)

ftp_put() stores local_file on the FTP server, as remote_file. The transfer mode specified must be either FTP_ASCII or FTP_BINARY.

Returns TRUE on success, FALSE on error.

Example 1. ftp_put() example

$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_ASCII);

Prev Manual Home Next
ftp_fget Up ftp_fput
Site Menu

Amazon.ca
Amazon.com
Amazon.co.uk



Most recently updated on 11 May, 2003

Home / PHP / Manual / ...



Please feel free to contact us with any comments or suggestions
PHP Manual
PHP Wysardry

This site is hosted by Spaceports