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: */
- 66: {
- 69: }
- 70: }
- 74: /**
- 75: * Magic method (do not call directly).
- 81: */
- 83: {
- 101: }
- 118: }
- 125: }
- 126: }
- 130: }
- 133: }
- 137: /**
- 138: * Reconnects to FTP server.
- 140: */
- 142: {
- 146: }
- 147: }
- 151: /**
- 152: * Checks if file or directory exists.
- 155: */
- 157: {
- 159: }
- 163: /**
- 164: * Checks if directory exists.
- 167: */
- 169: {
- 174: }
- 177: }
- 181: /**
- 182: * Recursive creates directories.
- 185: */
- 187: {
- 197: }
- 198: }
- 200: }
- 201: }
- 203: }
- 207: /**
- 208: * FTP server exception.
- 209: *
- 211: */
- 213: {
- 214: }