没有合适的资源?快使用搜索试试~ 我知道了~
Gaufrette-master文件流的抽象PHP库.zip
需积分: 5 0 下载量 198 浏览量
2019-07-11
11:01:22
上传
评论
收藏 506KB ZIP 举报
温馨提示
<?php use Gaufrette\Filesystem; use Gaufrette\Adapter\Ftp as FtpAdapter; use Gaufrette\Adapter\Local as LocalAdapter; use Gaufrette\Adapter\Cache as CacheAdapter; // Locale Cache-Directory (e.g. '%kernel.root_dir%/cache/%kernel.environment%/filesystem') with create = true $local = new LocalAdapter($cacheDirectory, true); // FTP Adapter with a defined root-path $ftp = new FtpAdapter($path, $host, $username, $password, $port); // Cached Adapter with 3600 seconds time to live $cachedFtp = new CacheAdapter($ftp, $local, 3600); $filesystem = new Filesystem($cachedFtp);Gaufrette 提供了一个文件系统的抽象层的PHP5库。它使得以相同方式操控本地文件,FTP服务器,亚马逊 S3等等。它允许你开发程序时,不用了解未来你将怎么访问你的文件。
资源推荐
资源评论
资源评论
weixin_39840387
- 粉丝: 784
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功