From c4e90941e9e72295c30259cd58074c31df253f12 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 15 Jan 2008 08:33:07 +0000 Subject: [PATCH] =?UTF-8?q?readFile()=EC=9D=98=20=EC=A4=84=EB=8B=A8?= =?UTF-8?q?=EC=9C=84=20fgets=EB=8C=80=EC=8B=A0=20file=5Fget=5Fcontents?= =?UTF-8?q?=ED=95=A8=EC=88=98=EA=B0=80=20=EC=9E=88=EC=9C=BC=EB=A9=B4=20?= =?UTF-8?q?=EB=8C=80=EC=8B=A0=20=EC=82=AC=EC=9A=A9=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=BD=94=EB=93=9C=20=EB=B3=80=EA=B2=BD=20(php=204.?= =?UTF-8?q?3=20=EC=9D=B4=ED=9B=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3526 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/file/FileHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/file/FileHandler.class.php b/classes/file/FileHandler.class.php index d5aeff6cb..d4f24701f 100644 --- a/classes/file/FileHandler.class.php +++ b/classes/file/FileHandler.class.php @@ -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) {