我需要一些帮助来解决这个错误;
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" )." ]" );
答案 0 :(得分:2)
尝试:list( $fname, $size ) = $fname;