我想做一个系统,把该系统放在本地,该系统的功能是管理远程服务器(已Linux为例)的,问题就是怎样跟远程的服务器连接上然后进行控制它(前提我已经知道了Linux服务器的账户和密码)。 大虾们麻烦你们看看怎么做???
解决方案 »
- php5.3执行sql server2005的存储过程,该怎么获取存储过程的查询记录
- 急急急,关于正则表达式的问题
- PHP程序员【求职】-- 北京
- 有关php和mysql存储过程
- php gd库安装好了但是imagecreate还是不工作,imagecolorallocate提示没有定义
- fsockopen 抓去 google.com 页面出现错误
- 如何用php重启动windows2003服务器??
- 紧急求救,页面设置问题。急!急!急!急!急!急!急!急!
- mysql中的备注字段应该是什么英文,我英文不好。我只知道int, char.
- PHP短连接怎么做
- 请教替换TAB的问题
- 数组去掉重复值的问题
exec
(PHP 4, PHP 5)exec — Execute an external program说明
string exec ( string $command [, array &$output [, int &$return_var ]] )
exec() executes the given command. 参数command
The command that will be executed. output
If the output argument is present, then the specified array will be filled with every line of output from the command. Trailing whitespace, such as \n, is not included in this array. Note that if the array already contains some elements, exec() will append to the end of the array. If you do not want the function to append elements, call unset() on the array before passing it to exec(). return_var
If the return_var argument is present along with the output argument, then the return status of the executed command will be written to this variable.
返回值
The last line from the result of the command. If you need to execute a command and have all the data from the command passed directly back without any interference, use the passthru() function. To get the output of the executed command, be sure to set and use the output parameter. 范例Example #1 An exec() example<?php
// outputs the username that owns the running php/httpd process
// (on a system with the "whoami" executable in the path)
echo exec('whoami');
?>