mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +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) {
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue