linux php运行命令解决方案

WBOY
Release: 2016-06-13 13:39:04
Original
872 people have browsed it

linux php运行命令

PHP code
<!--

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

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

Copy after login


我想在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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!