fopen()
w
$wfile = fopen('D:\cmd\w_count.w', 'w'); fwrite($wfile, ''); $wfile = fopen('D:\cmd\w_start_unix.w', 'w'); fwrite($wfile, ''); $wfile = fopen('D:\cmd\CreatedBefore.w', 'w'); fwrite($wfile, ''); $wfile = fopen('D:\cmd\CreatedAfter.w', 'w'); fwrite($wfile, ''); $wfile = fopen('D:\cmd\NextToken.w', 'w'); fwrite($wfile, '');
http://php.net/manual/en/function.fclose.php
(PHP 4, PHP 5, PHP 7)
fclose — Closes an open file pointer
Parameters ¶
handle
-
The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen().
(PHP 4, PHP 5, PHP 7)
fclose — 关闭一个已打开的文件指针
参数
handle
-
文件指针必须有效,并且是通过 fopen() 或 fsockopen() 成功打开的。