php-src/ext/ftp/php_ftp.h

86 lines
2.6 KiB
C
Raw Normal View History

/*
+----------------------------------------------------------------------+
2014-09-20 00:33:14 +08:00
| PHP Version 7 |
+----------------------------------------------------------------------+
2018-01-02 12:55:14 +08:00
| Copyright (c) 1997-2018 The PHP Group |
+----------------------------------------------------------------------+
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 |
| 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. |
+----------------------------------------------------------------------+
| Authors: Andrew Skalski <askalski@chek.com> |
| Stefan Esser <sesser@php.net> (resume functions) |
+----------------------------------------------------------------------+
*/
/* $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
2015-03-24 03:13:59 +08:00
#include "php_version.h"
#define PHP_FTP_VERSION PHP_VERSION
#define PHP_FTP_OPT_TIMEOUT_SEC 0
#define PHP_FTP_OPT_AUTOSEEK 1
#define PHP_FTP_OPT_USEPASVADDRESS 2
#define PHP_FTP_AUTORESUME -1
1999-09-20 23:40:22 +08:00
PHP_MINIT_FUNCTION(ftp);
2000-10-08 19:45:18 +08:00
PHP_MINFO_FUNCTION(ftp);
PHP_FUNCTION(ftp_connect);
2015-03-11 20:30:26 +08:00
#ifdef HAVE_FTP_SSL
PHP_FUNCTION(ftp_ssl_connect);
#endif
PHP_FUNCTION(ftp_login);
PHP_FUNCTION(ftp_pwd);
PHP_FUNCTION(ftp_cdup);
PHP_FUNCTION(ftp_chdir);
PHP_FUNCTION(ftp_exec);
PHP_FUNCTION(ftp_raw);
PHP_FUNCTION(ftp_mkdir);
PHP_FUNCTION(ftp_rmdir);
PHP_FUNCTION(ftp_chmod);
PHP_FUNCTION(ftp_alloc);
PHP_FUNCTION(ftp_nlist);
1999-09-20 23:40:22 +08:00
PHP_FUNCTION(ftp_rawlist);
PHP_FUNCTION(ftp_mlsd);
PHP_FUNCTION(ftp_systype);
PHP_FUNCTION(ftp_pasv);
PHP_FUNCTION(ftp_get);
PHP_FUNCTION(ftp_fget);
PHP_FUNCTION(ftp_put);
PHP_FUNCTION(ftp_append);
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);
PHP_FUNCTION(ftp_close);
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-12-18 05:34:28 +08:00
#define phpext_ftp_ptr php_ftp_module_ptr
#else
1999-12-18 05:34:28 +08:00
#define php_ftp_module_ptr NULL
#endif /* HAVE_FTP */
#endif