复制代码 代码如下:
$newfname = '1.wmv';
$reqBaseURL = 'http://translate.google.com/translate_tts?tl=en&q=how%20do%20you%20do';
$remote_file = fopen($reqBaseURL, "rb");
if ($remote_file){
$newf = fopen($newfname, "wb");
if ($newf){
while(!feof($remote_file)){
fwrite($newf, fread($remote_file, 1024 * 8),1024 * 8);
}
}
}
if ($remote_file) {
fclose($remote_file);
}
if ($newf) {
fclose($newf);
}
新闻热点
疑难解答