我在 php 中为呼叫中心完成了一个项目。我的目标是在远程服务器中编写通话录音文件。怎么可能?
我的代码是,
if(isset($row['recAudioFile'])){
$path="http://xxxxx.com/testrecordings/";
$RecordedFile="test.mp3";
file_put_contents($path.$RecordedFile,base64_decode($row['recAudioFile']));
}
注意:我无法在远程服务器中运行任何 php 代码或建立 FTP 连接。