标签:
// function makeTemp($fileName="index",$ftype=0) { $tempPath="xx/xxxx/{$fileName}.html"; if(file_exists($tempPath)) { return $tempPath; }else{ return false; } } //然后 if(↓) require_once(makeTemp(‘test‘)); //xx/xxxx/test.html
标签:
原文地址:http://www.cnblogs.com/love-zf/p/4380321.html