PHP的file_get_contents()方法,将整个文件读入字符串中

<?php
     $post_data = file_get_contents("e:\\1.txt"); 
     echo $post_data;
?>

更多信息看这里:http://www.w3school.com.cn/php/func_filesystem_file_get_contents.asp  

posted @ 2015-07-08 15:28  一菲聪天  阅读(2807)  评论(0编辑  收藏  举报