A simple svn command with PHP's Popen function to run the problem

Source: Internet
Author: User
Header ("Cache-control:no-cache,must-revalidate"); $handle = Popen (' Svnserve--version ', ' R '); $read = Stream_get_contents ($handle); echo "
";p rintf ($read); echo"
"; Pclose ($handle);

Because my Project Server and SVN server are not on a server, so I can't do it with hooks, only in this way

This can be done locally on the server. Normal display.

But replace
$handle = Popen (' svn up/www/web01--username xxx--password xxx ', ' r ');
cannot be executed (but local OK)

Execute directly on the server:
SVN up/www/web01--username xxx--password xxx
Also OK


Reply to discussion (solution)

There is no problem when performing a view of the version number, but there is a problem with the update. Do I need permission to update it?

Permissions issues
PHP program execution is the permissions and environment variables of WWW server
Environment variables, permissions, carefully check under OK big God, give me the answer.

  • 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.