这是什么?
我没学过php,请问这样是什么意思:
if( isset( $_FILES['torrent'] ) && strlen( $_POST['name'] ) < 100 )
torrent:是上传的文件名变里,name:是text型的输入框变量.
还有:
$torrent = $_FILES['torrent'];
if( !is_uploaded_file( $torrent['tmp_name'] ) )
die( 'not is_uploaded_file' );
if( !filesize( $torrent['tmp_name'] ) )
die( 'null file size' );
好象是判断是否有文件及长度,但php能判断一个客户端还没上传的文件的长度吗?
这个 $torrent['tmp_name'] 中的tmp_name又是什么?
最后:
$announce = $dicti['value']['announce'];中$announce 是变量,
$dicti也是变量,但其后的['value']['announce']代表什么?