Problems with executing a simple svn command using the php popen function

Source: Internet
Author: User
Problems with executing a simple svn command using the php popen function
Header ("Cache-Control: no-cache, must-revalidate"); $ handle = popen ('svnserve -- version', 'r '); $ read = stream_get_contents ($ handle); echo"
"; Printf ($ read); echo"
"; Pclose ($ handle );

Because my project server and SVN server are not on one server, I cannot use hooks to implement it.

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

However
$ Handle = popen ('svn up/www/web01 -- username xxx -- password xxx', 'r ');
It cannot be executed (but it is OK locally)

Run the following command on the server:
Svn up/www/web01 -- username xxx -- password xxx
OK


Reply to discussion (solution)

Check the version number, but an error occurs during update. Is the permission required during update?

Permission problems
Php program execution is the permission and environment variable of the www Server
Environment variables and permissions. check them carefully and 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.