svn up 使用链接执行大屏查看

发布于:2015年12月31日 已被阅读

<?php
//require(dirname(__FILE__).'/include/config.inc.php');
//header("Content-Type: text/html; charset=utf-8");
//header("Cache-Control:no-cache,must-revalidate");
$p = $_GET['p'];
/////////////////////////////////
// zhuren
/////////////////////////////////
if($p == 'zhuren'){
    $username = 'xianyong';
    $password = 'qweasdzxc';
    $target_dir = '/var/www/域名/项目名';
    exec("source /etc/default/locale");
    exec("export LC_ALL=en_US.UTF-8");
    exec("export.UTF-8");
    exec("export LANGUAGE=en_US.UTF-8");
    exec("svn update --username $username --password $password $target_dir 2>&1", $output);
    print_r($output);
    exit;
}
if($p == 'puti'){
    $username = 'xianyong';
    $password = 'qweasdzxc';
    $target_dir = '/var/www/www.dyree.cn/puti';
    exec("source /etc/default/locale");
    exec("export LC_ALL=en_US.UTF-8");
    exec("export.UTF-8");
    exec("export LANGUAGE=en_US.UTF-8");
    exec("svn update --username $username --password $password $target_dir 2>&1", $output);
    print_r($output);
    exit;
}
else if($p == 'ls'){
    passthru("ls", $out);
    print_r($out);
    exit;
}

else {
    echo 'param error';
}
?>

最新发布
linux下svn提交忽略某些文件... (173)
使用批处理来批量更新、提交SVN... (136)
linux查看目录文件大小命令 (145)
linux tar打包压缩排除某个... (134)
Linux tar压缩和解压 (192)
SVN子命令add用法浅析 (130)
热门博文
网友FBI探案:马蓉iPad惊人发现... (43345)
霍金携手俄罗斯富豪耗资1亿美元寻找外... (4747)
如何才能查看PHP内置函数源代码... (1209)
微信支付开发当前URL未注册的解决方... (573)
《谁为爱情买单》中的经典面试 ... (441)
让虚拟主机也用上SVN:适用于个人的... (395)
精华博文
[推荐]Centos7 安装配置 SVN (159)
easyswoole框架安装 (174)
php开启pecl的支持(推荐) (157)
1-10个恋爱表现:男朋友爱你程度到... (164)
女生喜欢你的10个程度,到第六个就可... (141)
Eclipse 没有Server选项... (211)
友情链接
我来忙 (110)