Hierarchical Data with PHP and MySQL
What is Hierarchical Data? Getting Started Finding all […]
What is Hierarchical Data? Getting Started Finding all […]
使用方法
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<? //设置PHP超时 set_time_limit(200); //包含类文件 require('ftp.class.php'); //使用 $ftp = new FTP('www.domain.com','username','password'); //连接FTP $ftp->ftpMkDir('www.domain.com/directory-name'); //创建文件夹 $ftp->ftpFolderPermission('www.domain.com/directory-name','0777'); //更改权限 $ftp->ftpCopyFile('www.domain.com/directory-name/file.php','file.php'); //复制文件 $ftp->ftpClose(); // 关闭FTP连接 ?> |