今天介绍下joomla下文件操作常用方法,这些方法在文件读写,图片文件上传,等都有用处。

jimport('joomla.filesystem.file');

$j = new JFile();

getExt($file) //获取扩展名不含.

getName($file) //获得文件名

exists($file) //文件是否存在

delete($file) //删除文件

copy($old,$new) //复制

upload($src) //上传

write($file) //写文件

read($file)  //读文件

move($old,$new) //移动文件

转截:http://www.111cn.net/jsp/Java/66728.htm

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2022-12-23
  • 2021-12-12
  • 2021-11-24
  • 2021-11-24
  • 2022-02-26
  • 2022-02-12
相关资源
相似解决方案