最新下载
热门教程
- 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.
相关文章
- 异环是网易的游戏吗 异环是网络游戏吗 04-24
- sketchup草图大师怎样调整纹理方向 04-24
- pubg国际服手游2026最新版下载-pubg国际服手游2026官网直装入口 04-24
- 3e口语怎么绑定手机号 3e口语绑定手机号方法 04-24
- 杉果游戏怎么激活 04-24
- 漫蛙漫画-官方网页入口 04-24