开发者

svn checkout is not working with php exec()

开发者 https://www.devze.com 2023-04-02 21:59 出处:网络
I want to checkout some files from svn to my locale folder using php. For that I write this code. $checkout = \"svn --username myuname--password mypass checkout svn://192.16.20.125/projname/trunk/co

I want to checkout some files from svn to my locale folder using php. For that I write this code.

    $checkout = "svn --username myuname--password mypass checkout svn://192.16.20.125/projname/trunk/content/Poems/files.swf  D:/PHP_Projects/MyTempRelease/content/Poems/files.swf";    
    exec($check开发者_开发问答out);

But its not checkout file to my locale. Not return any error.


I'd try this with a client - Tortoise or something else. Just to see if it works.

I'd also wonder if the lack of a space between "myuname" and "--password" is killing you.


I think it's because you are missing a space between your username and --password.

Try running the command directly (on the command line) and verify that it is working.

0

精彩评论

暂无评论...
验证码 换一张
取 消