readFile()의 줄단위 fgets대신 file_get_contents함수가 있으면 대신 사용하도록 코드 변경 (php 4.3 이후)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3526 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-15 08:33:07 +00:00
parent d05de2a319
commit c4e90941e9

View file

@ -14,11 +14,11 @@
**/
function readFile($file_name) {
if(!file_exists($file_name)) return;
$filesize = filesize($file_name);
if($filesize<1) return;
if(function_exists('file_get_contents')) return file_get_contents($file_name);
$fp = fopen($file_name, "r");
$buff = '';
if($fp) {