使用php将文件存储在远程服务器中

时间:2018-10-04 06:28:44

标签: php file-upload remote-server file-writing

我已经在php中完成了一个呼叫中心项目。 我的目标是将呼叫记录文件写入远程服务器。怎么可能?。

我的代码是,

if(isset($row['recAudioFile'])){
    $path="http://xxxxx.com/testrecordings/";
    $RecordedFile="test.mp3";
    file_put_contents($path.$RecordedFile,base64_decode($row['recAudioFile']));
}
  

注意:我无法在远程服务器上运行任何php代码,也无法建立FTP连接。

0 个答案:

没有答案