<?php
header("Content-type: text/html; charset=utf-8");
$username = 'leo';
$password = '123465';
$dir = 'E:/www/';
$text = '已经是最新版,无需更新。';
exec("svn up --username $username --password $password $dir 2>&1", $msg);
if(count($msg) == 2){
$content = $msg[1].$text;
echo iconv('gbk','utf-8',$msg[1]).'<br/>'.$text;
}else{
foreach($msg as $key=>$value){
echo iconv('gbk','utf-8',$value)."<br/>";
}
}
?>