目录 {$cat}
文件 {$tpl}
内容
返回
$content = ''; $fileName = SITE_PATH.sp_admin_get_tpl_file_path_by_cat($cat, $tpl); $handle = fopen($fileName, "r"); while (!feof($handle)){ $content .= fgets($handle); } fclose($handle); $content = str_replace("\r","\\r",$content); $content = str_replace("\n","\\n",$content);