Source for file Ftp.php
Documentation is available at Ftp.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see http://nettephp.com
- 12: *
- 18: */
- 26: /**
- 27: * Access to a FTP server.
- 28: *
- 29: * <code>
- 30: * $ftp = new Ftp;
- 31: * $ftp->connect('ftp.example.com');
- 32: * $ftp->login('anonymous', 'example@example.com');
- 33: * $ftp->get('file.txt', 'README', Ftp::ASCII);
- 34: * </code>
- 35: *
- 39: */
- 41: {
- 42: /**#@+ FTP constant alias */
- 53: /**#@-*/
- 63: /**
- 64: * Magic method (do not call directly).
- 70: */
- 72: {
- 90: }
- 107: }
- 114: }
- 115: }
- 119: }
- 122: }
- 126: /**
- 127: * Reconnects to FTP server.
- 129: */
- 131: {
- 135: }
- 136: }
- 140: /**
- 141: * Checks if file or directory exists.
- 144: */
- 146: {
- 148: }
- 152: /**
- 153: * Checks if directory exists.
- 156: */
- 158: {
- 163: }
- 166: }
- 170: /**
- 171: * Recursive creates directories.
- 174: */
- 176: {
- 186: }
- 187: }
- 189: }
- 190: }
- 192: }
- 196: /**
- 197: * FTP server exception.
- 198: *
- 200: */
- 202: {
- 203: }