企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
根据需要追加到Yourphp/Common/common.php下 ~~~ /******** 输出图片大小 ********/ function getimgwh($f,$t=3){ if(strstr($f,'://')) return ''; if(empty($f)) return ''; $f= '.'.str_replace(__ROOT__,'',$f); list($fw, $fh, $tmp,$wh) = getimagesize($f); return $wh; } /******** 删除文件后缀名 ********/ function filedelext($filename){ return trim(str_replace(strrchr($filename, "."),"",$filename)); } ~~~