问题1:
PHP 如何吧url文件保存下来??
文件类型MP3,MP4 文件是url 把获取url 文件自动保存到
服务器,浏览。
问题2:
获取的lrc文件,为直接文本,现在通过以下代码 转成lrc乱码(lrc歌词文件)
```php
$myfile=fopen($data_name.".lrc", "w+");
//fwrite($myfile, $data_url3);
fwrite($myfile, json_encode($data_url3));
```
问题1:
PHP 如何吧url文件保存下来??
文件类型MP3,MP4 文件是url 把获取url 文件自动保存到
服务器,浏览。
问题2:
获取的lrc文件,为直接文本,现在通过以下代码 转成lrc乱码(lrc歌词文件)
```php
$myfile=fopen($data_name.".lrc", "w+");
//fwrite($myfile, $data_url3);
fwrite($myfile, json_encode($data_url3));
```
数据库里建个表用来保存url,字段类型为varchar
lrc文件不知道是什么,你的代码里不需要用json_encode