最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP tmpfile() 函数实例教程
时间:2022-07-02 10:03:26 编辑:袖梨 来源:一聚教程网
PHP tmpfile() 函数实例教程
定义和用法
该tmpfile ( )函数创建一个临时文件中一个独特的名字读写(瓦特+ )模式。
语法
tmpfile()
提示和说明注:临时文件自动删除时,关闭fclose ( )时,或在脚本结束。 提示:又见tempnam ( ) 来看看实例.
$temp = tmpfile();
fwrite($temp, "Testing, testing.");
//Rewind to the start of file
rewind($temp);
//Read 1k from file
echo fread($temp,1024);
//This removes the file
fclose($temp);
?>
输出来.Testing, testing.
相关文章
- Dreamweaver怎么输入项目符号? dw项目符号的添加方法 07-12
- 燕云十六声瘦骨罗汉奇遇怎么过-瘦骨罗汉奇遇攻略 07-12
- Win11安装虚拟网卡怎么启用-图文步骤 07-12
- 使用PS结合LR制作出民国风格的复古人像照片教程 07-12
- 微信公众号怎么制作一个签到积分的功能 07-12
- 剑星尼尔DLC星之泪怎么收集 尼尔DLC星之泪位置一览 07-12