Home >Backend Development >PHP Tutorial >初学者提问,怎么用php从svn或者cvs上checkout

初学者提问,怎么用php从svn或者cvs上checkout

WBOY
WBOYOriginal
2016-06-13 10:12:49902browse

菜鸟提问,如何用php从svn或者cvs上checkout
如题
已知地址,用户名和密码的情况下,如何用php实现svn或者cvs的checkout功能

已尝试过用shell_exec执行svn checkout命令,貌似没用


------解决方案--------------------
windows下的话就下载tortoisewin32svn.msi安装后直接右键选择checkout
------解决方案--------------------
php有提供svn接口的,不过要另行安装扩展,网上下一个php_svn.dll

然后用这个函数:
bool svn_checkout ( string $repos , string $targetpath [, int $revision [, int $flags= 0 ]] )

------解决方案--------------------

引用楼主 qiusong1983 的帖子:
如题
已知地址,用户名和密码的情况下,如何用php实现svn或者cvs的checkout功能

已尝试过用shell_exec执行svn checkout命令,貌似没用

------解决方案--------------------
PHP的SVN函数:
http://php.mirror.camelnetwork.com/manual/en/ref.svn.php

CVS方面,lz看看这个:
http://sourceforge.net/projects/phpcvsview
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn