芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/clients/canaldegap.fr_old/modules/CTLModuleMaker/src/functions/getFileContent.php
function getFileContent($filename){ // returns the content of a file $filepath = dirname(__FILE__).DIRECTORY_SEPARATOR.$filename; if(file_exists($filepath)){ $fhandle = fopen($filepath, "r+"); $content = fread($fhandle, filesize($filepath)); return $content; }else{ return false; } }