fopen()

w

$wfile = fopen('D:cmdw_count.w', 'w');
fwrite($wfile, '');
$wfile = fopen('D:cmdw_start_unix.w', 'w');
fwrite($wfile, '');
$wfile = fopen('D:cmdCreatedBefore.w', 'w');
fwrite($wfile, '');
$wfile = fopen('D:cmdCreatedAfter.w', 'w');
fwrite($wfile, '');
$wfile = fopen('D:cmdNextToken.w', 'w');
fwrite($wfile, '');

http://php.net/manual/en/function.fclose.php

(PHP 4, PHP 5, PHP 7)

fclose — Closes an open file pointer

Description ¶

bool fclose ( resource $handle )

The file pointed to by handle is closed.

Parameters ¶

handle

The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen().

Return Values ¶

Returns TRUE on success or FALSE on failure.

 

(PHP 4, PHP 5, PHP 7)

fclose — 关闭一个已打开的文件指针

 

说明

bool fclose ( resource $handle )

将 handle 指向的文件关闭。

参数

handle

文件指针必须有效,并且是通过 fopen() 或 fsockopen() 成功打开的。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

 

 

 

原文地址:https://www.cnblogs.com/rsapaper/p/6742371.html