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
<?php
$post_data = file_get_contents("e:\\1.txt");
echo $post_data;
?>
更多信息看这里:http://www.w3school.com.cn/php/func_filesystem_file_get_contents.asp