<b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.category.html.cache.php</b> on line <b>1</b><br />
回復(fù)@Nevergiveu <b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.show.html.cache.php</b> on line <b>51</b><br />
<b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.category.html.cache.php</b> on line <b>22</b><br />
回復(fù)@阿初 <b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.category.html.cache.php</b> on line <b>4</b><br />
http://www.apdwn.com/v3doc/2714.html
回復(fù)@Nevergiveu
報(bào)錯(cuò)
<b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.category.html.cache.php</b> on line <b>1</b><br />
回復(fù)@夢(mèng)想飛翔
回復(fù)@Nevergiveu <b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.show.html.cache.php</b> on line <b>51</b><br />
3.5.2以上才能用
http://www.wendacms.com/10439.html
用這個(gè)方法
回復(fù)@長(zhǎng)沙小陳
依然報(bào)錯(cuò)
<b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.category.html.cache.php</b> on line <b>22</b><br />
確認(rèn)下程序版本,我試過(guò)了3.5.2,3.5.3都沒(méi)有問(wèn)題
我的是3.2.0
3.5是需要商業(yè)授權(quán)的吧
3.2肯定用不了,我3.5.0都用不了,升級(jí)到3.5.3才可以用
回復(fù)@夢(mèng)想飛翔
為了這兩塊錢(qián),找了半小時(shí)終于找到了,低版本放在index.php底部就行
// 獲取內(nèi)容中的縮略圖 function dr_get_content_img($value, $num = 0) { $rt = array(); $value = preg_replace('/\.(gif|jpg|jpeg|png)@(.*)(\'|")/iU', '.$1$3', $value); if (preg_match_all("/(src)=([\"|']?)([^ \"'>]+\.(gif|jpg|jpeg|png))\\2/i", $value, $imgs)) { $imgs[3] = array_unique($imgs[3]); foreach ($imgs[3] as $i => $img) { if ($num && $i+1 > $num) { break; } $rt[] = dr_file($img); } } return $rt; }首頁(yè),列表頁(yè),都可以用嗎? 然后怎么調(diào)用這個(gè)語(yǔ)句獲取的圖片地址呢?
回復(fù)@阿初
也許只有商業(yè)授權(quán)版才行了
回復(fù)@阿初 <b>Fatal error</b>: Call to undefined function dr_get_content_img() in <b>D:\phpStudy\PHPTutorial\WWW\cache\templates\templates.pc.koilee.home.news.category.html.cache.php</b> on line <b>4</b><br />
把這個(gè)代碼放到根目錄的index.php后面,并不是index.html
版本低了建議升級(jí),高版本風(fēng)險(xiǎn)小
回復(fù)@阿初
要授權(quán)費(fèi)啊,我只是個(gè)人學(xué)習(xí)用,沒(méi)必要買(mǎi)授權(quán)版啊
先謝謝了