1999-09-23 00:07:41 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2014-09-20 00:33:14 +08:00
|
|
|
| PHP Version 7 |
|
1999-09-23 00:07:41 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2018-01-02 12:55:14 +08:00
|
|
|
| Copyright (c) 1997-2018 The PHP Group |
|
1999-09-23 00:07:41 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 20:51:34 +08:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2001-06-20 05:25:53 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 20:51:34 +08:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2001-06-20 05:25:53 +08:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-09-23 00:07:41 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2002-07-26 21:03:08 +08:00
|
|
|
| Authors: Andrew Skalski <askalski@chek.com> |
|
|
|
|
| Stefan Esser <sesser@php.net> (resume functions) |
|
1999-09-23 00:07:41 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
1999-09-20 22:10:25 +08:00
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
#ifndef _INCLUDED_FTP_H
|
|
|
|
#define _INCLUDED_FTP_H
|
|
|
|
|
|
|
|
#if HAVE_FTP
|
|
|
|
|
1999-12-18 05:34:28 +08:00
|
|
|
extern zend_module_entry php_ftp_module_entry;
|
|
|
|
#define php_ftp_module_ptr &php_ftp_module_entry
|
1999-09-20 22:10:25 +08:00
|
|
|
|
2015-03-24 03:13:59 +08:00
|
|
|
#include "php_version.h"
|
|
|
|
#define PHP_FTP_VERSION PHP_VERSION
|
|
|
|
|
2002-01-02 22:58:17 +08:00
|
|
|
#define PHP_FTP_OPT_TIMEOUT_SEC 0
|
2002-07-26 21:03:08 +08:00
|
|
|
#define PHP_FTP_OPT_AUTOSEEK 1
|
2015-12-10 17:37:03 +08:00
|
|
|
#define PHP_FTP_OPT_USEPASVADDRESS 2
|
2002-07-26 21:03:08 +08:00
|
|
|
#define PHP_FTP_AUTORESUME -1
|
2002-01-02 22:58:17 +08:00
|
|
|
|
1999-09-20 23:40:22 +08:00
|
|
|
PHP_MINIT_FUNCTION(ftp);
|
2000-10-08 19:45:18 +08:00
|
|
|
PHP_MINFO_FUNCTION(ftp);
|
1999-09-20 22:10:25 +08:00
|
|
|
|
|
|
|
PHP_FUNCTION(ftp_connect);
|
2015-03-11 20:30:26 +08:00
|
|
|
#ifdef HAVE_FTP_SSL
|
2002-10-03 19:33:05 +08:00
|
|
|
PHP_FUNCTION(ftp_ssl_connect);
|
|
|
|
#endif
|
1999-09-20 22:10:25 +08:00
|
|
|
PHP_FUNCTION(ftp_login);
|
|
|
|
PHP_FUNCTION(ftp_pwd);
|
|
|
|
PHP_FUNCTION(ftp_cdup);
|
|
|
|
PHP_FUNCTION(ftp_chdir);
|
2000-09-14 06:00:31 +08:00
|
|
|
PHP_FUNCTION(ftp_exec);
|
2003-01-31 12:54:57 +08:00
|
|
|
PHP_FUNCTION(ftp_raw);
|
1999-09-20 22:10:25 +08:00
|
|
|
PHP_FUNCTION(ftp_mkdir);
|
|
|
|
PHP_FUNCTION(ftp_rmdir);
|
2003-01-27 10:54:12 +08:00
|
|
|
PHP_FUNCTION(ftp_chmod);
|
2003-09-19 01:36:08 +08:00
|
|
|
PHP_FUNCTION(ftp_alloc);
|
1999-09-20 22:10:25 +08:00
|
|
|
PHP_FUNCTION(ftp_nlist);
|
1999-09-20 23:40:22 +08:00
|
|
|
PHP_FUNCTION(ftp_rawlist);
|
2017-01-28 11:20:40 +08:00
|
|
|
PHP_FUNCTION(ftp_mlsd);
|
1999-09-20 22:10:25 +08:00
|
|
|
PHP_FUNCTION(ftp_systype);
|
1999-09-27 22:07:09 +08:00
|
|
|
PHP_FUNCTION(ftp_pasv);
|
1999-09-20 22:10:25 +08:00
|
|
|
PHP_FUNCTION(ftp_get);
|
1999-09-27 22:07:09 +08:00
|
|
|
PHP_FUNCTION(ftp_fget);
|
1999-09-20 22:10:25 +08:00
|
|
|
PHP_FUNCTION(ftp_put);
|
2017-07-09 01:36:22 +08:00
|
|
|
PHP_FUNCTION(ftp_append);
|
1999-09-27 22:07:09 +08:00
|
|
|
PHP_FUNCTION(ftp_fput);
|
|
|
|
PHP_FUNCTION(ftp_size);
|
|
|
|
PHP_FUNCTION(ftp_mdtm);
|
1999-10-05 02:30:37 +08:00
|
|
|
PHP_FUNCTION(ftp_rename);
|
|
|
|
PHP_FUNCTION(ftp_delete);
|
2000-02-23 04:50:00 +08:00
|
|
|
PHP_FUNCTION(ftp_site);
|
2002-01-02 06:15:22 +08:00
|
|
|
PHP_FUNCTION(ftp_close);
|
2002-01-02 22:58:17 +08:00
|
|
|
PHP_FUNCTION(ftp_set_option);
|
|
|
|
PHP_FUNCTION(ftp_get_option);
|
2002-10-03 17:10:24 +08:00
|
|
|
PHP_FUNCTION(ftp_nb_get);
|
|
|
|
PHP_FUNCTION(ftp_nb_fget);
|
|
|
|
PHP_FUNCTION(ftp_nb_put);
|
|
|
|
PHP_FUNCTION(ftp_nb_fput);
|
|
|
|
PHP_FUNCTION(ftp_nb_continue);
|
1999-09-20 22:10:25 +08:00
|
|
|
|
1999-12-18 05:34:28 +08:00
|
|
|
#define phpext_ftp_ptr php_ftp_module_ptr
|
1999-09-20 22:10:25 +08:00
|
|
|
|
|
|
|
#else
|
1999-12-18 05:34:28 +08:00
|
|
|
#define php_ftp_module_ptr NULL
|
1999-09-20 22:10:25 +08:00
|
|
|
#endif /* HAVE_FTP */
|
|
|
|
|
|
|
|
#endif
|