头两句应该改为:
$fp=fopen("liuyanban\text.txt","a+");
$t=date("Y年m月d日");liuyanban\text.txt 这个文件属性必须为任何人可写,
$fp=fopen("liuyanban\text.txt","a+");
$t=date("Y年m月d日");liuyanban\text.txt 这个文件属性必须为任何人可写,
解决方案 »
- 与require有关的路径问题
- sql查询排序的问题
- 谁做过Paypal支付接口的案例(Express checkout)?
- mktime() expects parameter 6 to be long, string given问题
- CSV导出时,弹出一个对话框,提示下载或直接打开.但是有的机器没有这个对话框,直接在IE里打开了.
- 无刷新聊天室问题
- 各位高手,小弟跪求一段简单发送E_mail的代码!!!
- 有没有防sql注入的php的程序
- 密码:必须且只含有数字和字母,可以拥有英文符号,6-17位。正则表达式怎么写?
- php 图片某一个颜色设为透明,但只透明了一处??
- 高分求“phpmvc”的相关参考文档!
- 正则表达式?
第一个还是不对啊,Warning: fopen(liuyanban ext.txt): failed to open stream: Invalid argument in c:\inetpub\wwwroot\liuyanban\write.php on line 8
$fp=fopen("\liuyanban\text.txt","a+");
改为
$fp=fopen("/liuyanban/text.txt","a+");注意 \t 是转义符!
你的write.php在c:\inetpub\wwwroot\liuyanban\下,如你准备在这个目录下写,那么就应如上写法