【发布时间】:2018-10-08 18:42:57
【问题描述】:
我有这样的错误:
严格标准:只有变量应该在 /file.php 第 100 行通过引用传递
在 file.php 行看起来像这样:
foreach($filelist as $value => $file) {
// ABOVE LINE IS LINE 100
if(in_array(end(explode(".", $file)), $extensions)&&is_file($dir.$file)) { $c++; }
if(IsSet($_GET['start'])) {
$nav = $_GET['start'];
} else {
$nav = "0";
}
if(($c > $nav) && ($c < $nav+($pagerows+1))) {
$link = $dir . $file;
$hlink = $http . $file;
$ext = explode(".", $file);
if(in_array(end($ext), $extensions)&&is_file($link)) {
$p++;
if(file_exists($link)) {
list($width, $height, $type, $attr) = getimagesize($link);
if($height > SMALL_IMAGE_HEIGHT) {
$imageheight = SMALL_IMAGE_HEIGHT;
} else {
$imageheight = $height;
}
你能帮帮我吗?我找到了这样的主题,但中午有代码像我的代码。
【问题讨论】:
-
嗨,我已经改进了问题的格式(标记第 100 行的注释实际上不可见!)不过,我建议您阅读 stackoverflow.com/help/mcve 并根据本指南提问.好消息是,一旦您开始最小化重现问题的代码,您就更有可能自己找到问题的根源。此外,您应该将“像这样的主题”放在网站上,以便我们可以建议您忽略的主题。最好的问候
标签: php arrays variables standards strict