警告:ftp_get函数

时间:2013-11-26 06:33:14

标签: php linux ftp ftp-client

我正在调用此方法ftp_get($refConnection, $local_file, $remote_file, FTP_BINARY)

面临此错误

Warning: ftp_get(/var/sandbox/client/api/clientapi/remote_files/OUTPUT/TRANSACTIONS/Transaction_2013_11_06_74130845_01.xml) [function.ftp-get]: failed to open stream: Permission denied in /var/sandbox/client/api/clientapi/api_functions.php on line 159

1 个答案:

答案 0 :(得分:0)

这是与权限相关的问题,与PHP代码无关。

chmod 777目录/var/sandbox/client/api/clientapi/remote_files/OUTPUT/TRANSACTIONS/并重试您的代码。