Home  >  Article  >  Backend Development  >  用PHP读写NTFS文件系统下的文件摘要信息

用PHP读写NTFS文件系统下的文件摘要信息

WBOY
WBOYOriginal
2016-06-01 14:28:011024browse

可以参看MSDN中“程序员对 NTFS 2000 的看法第一部分:流与硬链接”这一节的内容

方法如下
写入摘要信息
if($h=fopen("test.txt:Title","w"))
fwrite($h,"test");
读取摘要信息
if($h=fopen("test.txt:Title","r"))
echo fread($h,1024);

说明:
当指定的摘要信息,就是":"后面的字段名(可以指定成自己想要的字段)不存在时候会报错,所以之前先要写入信息.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn