Home >Backend Development >PHP Tutorial > linux php运行命令解决方案

linux php运行命令解决方案

WBOY
WBOYOriginal
2016-06-13 13:39:04913browse

linux php运行命令

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<?php exec("svn update");



我想在linux上执行svn的update操作,但是发现不能执行.文件的权限777,所有人为ROOT用户

------解决方案--------------------
执行脚本的用户 不一定有权限执行svn命令,参考下面
http://koda.iteye.com/blog/1086240
另外可以尝试一下,php的svn库
------解决方案--------------------
php不是有svn,扩展吗。
http://www.php.net/manual/zh/book.svn.php
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