PHP Exec SCP不会将文件复制到远程服务器 [英] PHP Exec SCP does not copy the file to the remote server

查看:108
本文介绍了PHP Exec SCP不会将文件复制到远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用PHP从一台服务器到另一台服务器(我都拥有)的文件.我有以下脚本:

I need a file from a server to another server (I own both) using PHP. I have the following script:

<?php

exec('scp /home/pat/file1.tst pat@myserver.com:/home/pat/file1.txt');

我收到此错误:

Disallowed system call: SYS_pipe

那是什么错误?以及我该如何解决?

What is that error? and how can I fix it?

推荐答案

PHP环境不允许在您的服务器上执行.

PHP environment does not allow exec on your server.

这篇关于PHP Exec SCP不会将文件复制到远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆