php_ftp.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Andrew Skalski <askalski@chek.com> |
  16. | Stefan Esser <sesser@php.net> (resume functions) |
  17. +----------------------------------------------------------------------+
  18. */
  19. /* $Id$ */
  20. #ifndef _INCLUDED_FTP_H
  21. #define _INCLUDED_FTP_H
  22. #if HAVE_FTP
  23. extern zend_module_entry php_ftp_module_entry;
  24. #define php_ftp_module_ptr &php_ftp_module_entry
  25. #define PHP_FTP_OPT_TIMEOUT_SEC 0
  26. #define PHP_FTP_OPT_AUTOSEEK 1
  27. #define PHP_FTP_OPT_USEPASVADDRESS 2
  28. #define PHP_FTP_AUTORESUME -1
  29. PHP_MINIT_FUNCTION(ftp);
  30. PHP_MINFO_FUNCTION(ftp);
  31. PHP_FUNCTION(ftp_connect);
  32. #ifdef HAVE_OPENSSL_EXT
  33. PHP_FUNCTION(ftp_ssl_connect);
  34. #endif
  35. PHP_FUNCTION(ftp_login);
  36. PHP_FUNCTION(ftp_pwd);
  37. PHP_FUNCTION(ftp_cdup);
  38. PHP_FUNCTION(ftp_chdir);
  39. PHP_FUNCTION(ftp_exec);
  40. PHP_FUNCTION(ftp_raw);
  41. PHP_FUNCTION(ftp_mkdir);
  42. PHP_FUNCTION(ftp_rmdir);
  43. PHP_FUNCTION(ftp_chmod);
  44. PHP_FUNCTION(ftp_alloc);
  45. PHP_FUNCTION(ftp_nlist);
  46. PHP_FUNCTION(ftp_rawlist);
  47. PHP_FUNCTION(ftp_systype);
  48. PHP_FUNCTION(ftp_pasv);
  49. PHP_FUNCTION(ftp_get);
  50. PHP_FUNCTION(ftp_fget);
  51. PHP_FUNCTION(ftp_put);
  52. PHP_FUNCTION(ftp_fput);
  53. PHP_FUNCTION(ftp_size);
  54. PHP_FUNCTION(ftp_mdtm);
  55. PHP_FUNCTION(ftp_rename);
  56. PHP_FUNCTION(ftp_delete);
  57. PHP_FUNCTION(ftp_site);
  58. PHP_FUNCTION(ftp_close);
  59. PHP_FUNCTION(ftp_set_option);
  60. PHP_FUNCTION(ftp_get_option);
  61. PHP_FUNCTION(ftp_nb_get);
  62. PHP_FUNCTION(ftp_nb_fget);
  63. PHP_FUNCTION(ftp_nb_put);
  64. PHP_FUNCTION(ftp_nb_fput);
  65. PHP_FUNCTION(ftp_nb_continue);
  66. #define phpext_ftp_ptr php_ftp_module_ptr
  67. #else
  68. #define php_ftp_module_ptr NULL
  69. #endif /* HAVE_FTP */
  70. #endif