博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PHP 写文件的例子
阅读量:4602 次
发布时间:2019-06-09

本文共 295 字,大约阅读时间需要 1 分钟。

$contents = "All the content"; $dir = 'c:'; $file_path = $dir . "\\content.txt"; if(is_writable($file_path)) {     file_put_contents($file_path , $contents); } else {     die("Directory $dir is not writable, or does not exist. Please check"); }

 

转载于:https://www.cnblogs.com/dangkei/p/3953290.html

你可能感兴趣的文章
波涛 - 证券期货投资计算机化技术分析原理(2013年3月19日)
查看>>
sqlserver存储过程中sql语句连接及datetime字段的处理
查看>>
JavaScript 测试和捕捉
查看>>
高级软件工程第二次作业——个人项目实战:数独
查看>>
Kafka主要配置
查看>>
PHP开发经验总结
查看>>
Cocos2d-x Developer Blog
查看>>
java内存泄漏
查看>>
2018春季校园招聘笔经面经合集:Java开发岗
查看>>
算法:JavaScript两数之和
查看>>
TIOBE Programming Community Index for June 2012
查看>>
GET,POST传值总结
查看>>
关于libxml2.so.2不被Gstreamer链接的解决
查看>>
Codeforces 872C Maximum splitting:数学【分解成合数之和】
查看>>
C++中的struct
查看>>
php join函数使用,很是方便
查看>>
hdu - 2266 How Many Equations Can You Find (简单dfs)
查看>>
UIView属性
查看>>
将博客搬至CSDN
查看>>
Java线程Dump分析工具--jstack【转载】
查看>>