PHP tmpfile() 函数
PHP 教程
· 2019-01-25 16:44:20
定义和用法
tmpfile() 函数以读写(w+)模式创建一个具有唯一文件名的临时文件。
语法
tmpfile()
提示和注释
注释:临时文件会在文件关闭后(用 fclose())或当脚本结束后自动被删除。
提示:参见 tempnam()。
实例
<?php $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.
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
JavaScript实战手册
David Sawyer McFarland / 李强 / 机械工业出版社 / 2009 / 89.00元
在《JavaScript实战手册》中,畅销书作者David McFarland教你如何以高级的方式使用JavaScript,即便你只有很少或者没有编程经验。一旦掌握了这种语言的结构和术语,你将学习如何使用高级的JavaScript工具来快速为站点添加有用的交互,而不是一切从头开始编写脚本。和其他的Missing Manuals图书不同,《JavaScript实战手册》清楚、精炼,手把手地讲解。 ......一起来看看 《JavaScript实战手册》 这本书的介绍吧!