cvs: /php4/ext/ftp ftp.c

From: Date: Thu, 16 Sep 1999 19:39:45 +0000
Subject: cvs: /php4/ext/ftp ftp.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4536@lists.php.net to get a copy of this message
askalski Thu Sep 16 15:39:45 1999 EDT Modified files: /php4/ext/ftp ftp.c Log: Added documentation hooks to ftp.c Index: php4/ext/ftp/ftp.c diff -u php4/ext/ftp/ftp.c:1.3 php4/ext/ftp/ftp.c:1.4 --- php4/ext/ftp/ftp.c:1.3 Thu Sep 16 15:03:27 1999 +++ php4/ext/ftp/ftp.c Thu Sep 16 15:39:44 1999 @@ -85,6 +85,8 @@ return SUCCESS; } +/* {{{ proto int ftp_connect(string host) + Open a FTP stream */ PHP_FUNCTION(ftp_connect) { pval *arg1; @@ -108,7 +110,10 @@ id = php3_list_insert(net, le_netbuf); RETURN_LONG(id); } +/* }}} */ +/* {{{ proto int ftp_login(int stream, string username, string password) + Logs into the FTP server. */ PHP_FUNCTION(ftp_login) { pval *arg1, *arg2, *arg3; @@ -144,7 +149,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto string ftp_pwd(int stream) + Returns the present working directory. */ PHP_FUNCTION(ftp_pwd) { pval *arg1; @@ -174,7 +182,10 @@ RETURN_STRING(buf, 1); } +/* }}} */ +/* {{{ proto int ftp_cdup(int stream) + Changes to the parent directory */ PHP_FUNCTION(ftp_cdup) { pval *arg1; @@ -203,7 +214,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto int ftp_chdir(int stream, string directory) + Changes directories */ PHP_FUNCTION(ftp_chdir) { pval *arg1, *arg2; @@ -237,7 +251,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto int ftp_mkdir(int stream, string directory) + Creates a directory */ PHP_FUNCTION(ftp_mkdir) { pval *arg1, *arg2; @@ -271,7 +288,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto int ftp_rmdir(int stream, string directory) + Removes a directory */ PHP_FUNCTION(ftp_rmdir) { pval *arg1, *arg2; @@ -305,7 +325,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto array ftp_nlist(int stream, string directory) + Returns an array of filenames in the given directory */ PHP_FUNCTION(ftp_nlist) { pval *arg1, *arg2; @@ -383,7 +406,10 @@ } while (size != -1); fclose(outfp); } +/* }}} */ +/* {{{ proto array ftp_listraw(int stream, string directory) + Returns a detailed listing of a directory as an array of output lines */ PHP_FUNCTION(ftp_listraw) { pval *arg1, *arg2; @@ -461,7 +487,10 @@ } while (size != -1); fclose(outfp); } +/* }}} */ +/* {{{ proto string ftp_systype(int stream) + Returns the system type identifier */ PHP_FUNCTION(ftp_systype) { pval *arg1; @@ -493,7 +522,10 @@ RETURN_STRING(buf, 1); } +/* }}} */ +/* {{{ proto int ftp_get(int stream, string local_file, string remote_file, int mode) + Retrieves a file from the FTP server. */ PHP_FUNCTION(ftp_get) { pval *arg1, *arg2, *arg3, *arg4; @@ -576,7 +608,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto int ftp_put(int stream, string remote_file, string local_file, int mode) + Stores a file on the FTP server */ PHP_FUNCTION(ftp_put) { pval *arg1, *arg2, *arg3, *arg4; @@ -634,7 +669,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto int ftp_quit(int stream) + Closes the FTP stream */ PHP_FUNCTION(ftp_quit) { pval *arg1; @@ -659,5 +697,6 @@ RETURN_TRUE; } +/* }}} */ #endif /* HAVE_FTP */

« previous php.version4 (#4536) next »