Beginners ask how to use php to checkout from svn or cvs

Source: Internet
Author: User
Cainiao asks, how to use php to checkout from svn or cvs, such as a known address, user name, and password, how to use php to implement the svn or cvs checkout function has been tried to execute the svncheckout command with shell_exec, it seems useless ------ solution ------------------ download tortoisewin32svn in windows. after msi is installed, Cainiao asks you how to use php to checkout from svn or cvs.
Example
How to use php to implement the checkout function of svn or cvs when the address, user name, and password are known

I have tried to run the svn checkout command with shell_exec, and it seems useless.


------ Solution --------------------
In windows, download tortoisewin32svn. msi and right-click it and select checkout.
------ Solution --------------------
Php provides the svn interface, but you need to install and expand it separately. the next online php_svn.dll

Then use this function:
Bool svn_checkout (string $ repos, string $ targetpath [, int $ revision [, int $ flags = 0])

------ Solution --------------------
Reference the post of qiusong1983:
Example
How to use php to implement the checkout function of svn or cvs when the address, user name, and password are known

I have tried to run the svn checkout command with shell_exec, and it seems useless.

------ Solution --------------------
Php svn functions:
Http://php.mirror.camelnetwork.com/manual/en/ref.svn.php

For CVS, lz should look at this:
Http://sourceforge.net/projects/phpcvsview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.