★ wanayoo — archive 1999 http://fr.php.net/manual/function.ftp-put.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to FTP
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
FTP
* ftp_connect
* ftp_login
* ftp_pwd
* ftp_cdup
* ftp_chdir
* ftp_mkdir
* ftp_rmdir
* ftp_nlist
* ftp_rawlist
* ftp_systype
* ftp_pasv
* ftp_get
* ftp_fget
* ftp_put
* ftp_fput
* ftp_size
* ftp_mdtm
* ftp_rename
* ftp_delete
* ftp_site
* ftp_quit

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: ftp_put
View the source code for this pageSearch the site



Previous page
 ftp_fget
 Updated
Mon, 08 Jan 2001
ftp_fput 
Next page


ftp_put

(PHP 3>= 3.0.13, PHP 4 >= 4.0b4)

ftp_put -- Uploads a file to the FTP server.

Description

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

Returns true on success, false on error.

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

Example 1. Ftp_put() example


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


 About Notes


Previous page
 ftp_fget
 Updated
Mon, 08 Jan 2001
ftp_fput 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.