mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
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:
parent
d05de2a319
commit
c4e90941e9
1 changed files with 2 additions and 2 deletions
|
|
@ -14,11 +14,11 @@
|
||||||
**/
|
**/
|
||||||
function readFile($file_name) {
|
function readFile($file_name) {
|
||||||
if(!file_exists($file_name)) return;
|
if(!file_exists($file_name)) return;
|
||||||
|
|
||||||
$filesize = filesize($file_name);
|
$filesize = filesize($file_name);
|
||||||
|
|
||||||
if($filesize<1) return;
|
if($filesize<1) return;
|
||||||
|
|
||||||
|
if(function_exists('file_get_contents')) return file_get_contents($file_name);
|
||||||
|
|
||||||
$fp = fopen($file_name, "r");
|
$fp = fopen($file_name, "r");
|
||||||
$buff = '';
|
$buff = '';
|
||||||
if($fp) {
|
if($fp) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue