2016年3月31日
摘要: <!--upload.php内容--><?php /* 修改php.ini的设置 file_uploads必须是On upload_max_filesize 设置上传文件的大小,此值小于post_max_size post_max_size 设置POST方法可以接收的最大值 upload_tmp_d 阅读全文
posted @ 2016-03-31 21:53 奋斗的寒霜 阅读(270) 评论(0) 推荐(0) 编辑
摘要: <?php //如果多用户访问一个文件,采用文件锁定机制 /* flock()文件锁定 */ header("Content-Type:text/html;charset=utf8"); $filename = "message.txt"; //如果用户提交了, 就写入文件, 按一定格式写入 if( 阅读全文
posted @ 2016-03-31 20:51 奋斗的寒霜 阅读(368) 评论(0) 推荐(0) 编辑
摘要: <?php header("Content-Type:text/html;charset=utf8"); $filename = "message.txt"; //如果用户提交了, 就写入文件, 按一定格式写入 if(isset($_POST['dosubmit'])) { //字段的分隔使用||, 阅读全文
posted @ 2016-03-31 20:38 奋斗的寒霜 阅读(264) 评论(0) 推荐(0) 编辑