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

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

 

 

 

posted @ 2017-04-21 10:41  papering  阅读(162)  评论(0编辑  收藏  举报