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 https://nette.org
- 12: *
- 19: */
- 27: /**
- 28: * Access to a FTP server.
- 29: *
- 30: * <code>
- 31: * $ftp = new Ftp;
- 32: * $ftp->connect('ftp.example.com');
- 33: * $ftp->login('anonymous', 'example@example.com');
- 34: * $ftp->get('file.txt', 'README', Ftp::ASCII);
- 35: * </code>
- 36: *
- 40: */
- 42: {
- 43: /**#@+ FTP constant alias */
- 54: /**#@-*/
- 64: /**
- 65: * Magic method (do not call directly).
- 71: */
- 73: {
- 91: }
- 108: }
- 115: }
- 116: }
- 120: }
- 123: }
- 127: /**
- 128: * Reconnects to FTP server.
- 130: */
- 132: {
- 136: }
- 137: }
- 141: /**
- 142: * Checks if file or directory exists.
- 145: */
- 147: {
- 149: }
- 153: /**
- 154: * Checks if directory exists.
- 157: */
- 159: {
- 164: }
- 167: }
- 171: /**
- 172: * Recursive creates directories.
- 175: */
- 177: {
- 187: }
- 188: }
- 190: }
- 191: }
- 193: }
- 197: /**
- 198: * FTP server exception.
- 199: *
- 201: */
- 203: {
- 204: }