
php
hn_bc
这个作者很懒,什么都没留下…
展开
-
php 实现文本下载
$file_name="a.txt"; //Windows PATH; $file_path=dirname(__FILE__).'\\' . $file_name; //下载文件需要用到的头 Header("Content-type: application/octet-stream"); Header("Content-Disposition: attachment; fi...原创 2014-07-10 11:31:48 · 164 阅读 · 0 评论 -
php.exe 执行 .php文件
代码如下: <?php echo "hello php"; echo __FILE__; $path1 = "test_schedule.txt"; $path2 = dirname(__FILE__)."\\"."test_schedule.txt"; $fp=fopen($path1, "a+"); fwrite($fp, date("Y-m-d H:i:s&原创 2014-07-11 10:05:34 · 315 阅读 · 0 评论