Parsing php中的一些错误

Parsing php中的一些错误,parsing,syntax,Parsing,Syntax,我需要一些帮助来解决这个错误 Parse error: syntax error, unexpected T_VARIABLE 电话是: list( $fname, $size ) = fname $fname = trim( $fname );}" 代码开头: include( "{$include_path}/app/ftp.php" ); $ftp_object = new FTP( "" ); $ftp_objec

我需要一些帮助来解决这个错误

Parse error: syntax error, unexpected T_VARIABLE
电话是:

list( $fname, $size ) = fname                    $fname = trim( $fname );}"
代码开头:

include( "{$include_path}/app/ftp.php" );
        $ftp_object = new FTP( "" );
        $ftp_object->login( $remote_store_array, $remote_store_array['user_login'], $decoded_temp_passwd );
        unset( $decoded_temp_passwd );
        $singlerow_archive = query_singlerow( $table = "store_files", "`id` = '{$singlerow_install['file_id']}'" );
        $ftp_object->file_size( $singlerow_archive['file'] );
        $zip_array = $ftp_object->listzips( );
        $ftp_object->logout( );
        $percent_uploaded = "";
        $archive_mb_size = sprintf( "%.1f", $singlerow_archive['size'] / 1024 / 1024 );
        if ( !empty( $zip_array ) )
        {
            foreach ( $zip_array as $fileinfo )
            {
                list( $fname, $size ) = fname                    $fname = trim( $fname );
                $size = trim( $size );
                }
                if ( !( $singlerow_archive['file'] == $fname ) && empty( $size ) )
                {
                    $percent_uploaded = sprintf( "%.1f", $size / $singlerow_archive['size'] * 100 );
                }
            }
        }
        if ( empty( $percent_uploaded ) )
        {
            $percent_uploaded = "0";
        }
        array_push( $admin_diag_msg, translate_text( "tpl_store_archive_upload_triggered", "upper" )." [ <span style=\"background-color : #ffffcc; padding : 5px;\">{$percent_uploaded} %</span> {$archive_mb_size} ".translate_text( "tpl_MB" )." ]" );
include(“{$include_path}/app/ftp.php”);
$ftp_object=新ftp(“”);
$ftp\u object->login($remote\u store\u array,$remote\u store\u array['user\u login'],$decoded\u temp\u passwd);
未设置($decoded\u temp\u passwd);
$singlerow\u archive=query\u singlerow($table=“store\u files”,“id`='{$singlerow\u install['file\u id']}');
$ftp_object->file_size($singlerow_archive['file']);
$zip_数组=$ftp_对象->listzips();
$ftp_object->logout();
$percent_=“”;
$archive_mb_size=sprintf(“%.1f”,$singlerow_archive['size']/1024/1024);
如果(!空($zip_数组))
{
foreach($zip_数组作为$fileinfo)
{
列表($fname,$size)=fname$fname=trim($fname);
$size=修剪($size);
}
if(!($singlerow_archive['file']=$fname)&&empty($size))
{
$percent_upload=sprintf(“%.1f”,$size/$singlerow_归档文件['size']*100);
}
}
}
如果(空($percent_上传))
{
$percent_=“0”;
}
数组推送($admin_diag_msg,translate_text(“tpl_store_archive_upload_triggered”,“upper”)。“[{$percent_uplated}%{$archive_mb_size}”。translate_text(“tpl_mb”)。”];

试试:
列表($fname,$size)=$fname

这里的
fname
是什么(没有$)?嗨,我将发布更多内容,也许我们可以解决这个问题:这个问题已经解决了,谢谢你,但是我知道我在同一个文件中有另一个错误“意外的T\U案例”