Home > Backend Development > PHP Tutorial > Use PHP to read and write file summary information under the NTFS file system_PHP tutorial

Use PHP to read and write file summary information under the NTFS file system_PHP tutorial

WBOY
Release: 2016-07-13 17:32:22
Original
1118 people have browsed it

You can refer to the section "Programmers’ Views on NTFS 2000 Part 1: Streams and Hard Links" in MSDN

The method is as follows
Write summary information
if($h =fopen("test.txt:Title","w"))
fwrite($h,"test");
Read summary information
if($h=fopen("test.txt :Title","r"))
echo fread($h,1024);

Note:
When the specified summary information is, it is the field name after ":" (can be specified as If the field you want) does not exist, an error will be reported, so you need to write the information before.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508722.htmlTechArticleYou can refer to the section "Programmers' Views on NTFS 2000 Part 1: Streams and Hard Links" in MSDN The content method is as follows to write summary information if(h=fopen("test.txt:Title","w")) fwrite(h...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template