Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
ftp_nb_fput() function in PHP
The ftp_nb_fput() function uploads from an open file and saves it to a file on the FTP server.
Syntax
ftp_nb_fput(con,remote_file,open_file,transfer_mode,beg_pos);
Parameters
con − The FTP connection
remote_file − The file to upload to
open_file − The pointer to the open file
-
transfer_mode − This is the transfer mode. The following are the possible values:
- FTP_ASCII, or
- FTP_BINARY
beg_pos − The position to begin the downloading
Return
The ftp_nb_fput() function returns any of the following values −
FTP_FAILED − send/receive failed
FTP_FINISHED − send/receive completed
FTP_MOREDATA − send/receive in progress
Example
The following is an example −
Advertisements
