Plus_Happy2
2015-02-12 16:08
! ) Strict standards: Only variables should be passed by reference in D:\wamp\www\index2.php on line 148
Call Stack
php5.3以后的版本都会出现这问题,拆分这句$ext=strtolower(end(explode(".",$value)));
$arr=explode(".",$value);
$ext=strtolower(end($arr));
这个错误怎么解决
//得到文件扩展名
$ext=strtolower(end(explode(".",$value)));
$imageExt=array("gif","jpg","jpeg","png");
if(in_array($ext,$imageExt)){
?>
<a href="#" onclick="showDetail('<?php echo $value;?>','<?php echo $p;?>')"><img class="small" src="images/show.png" alt="" title="查看"/></a>|
<?php
}else{
?>
<a href="index2.php?act=showContent&path=<?php echo $path;?>&filename=<?php echo $p;?>" ><img class="small" src="images/show.png" alt="" title="查看"/></a>|
<?php }?>WEB在线文件管理器
36254 学习 · 346 问题
相似问题