时间:2021-07-01 10:21:17 帮助过:31人阅读
php代码如下所示:
<?php $book_mark_name = 'book_mark.html'; $content = file_get_contents('tb_fav.json'); var_dump($content); $content_list = json_decode($content,'utf-8'); $content_list = $content_list['RECORDS']; $content_header = "". "". "". "Bookmarks ". "Bookmarks
". "
"; file_put_contents($book_mark_name,$content_header); foreach ($content_list as $item) { $href = $item['url']; $add_date = $item['create_time']; $last_visit = $item['last_modify_time']; $last_modified = $item['last_modify_time']+1; $title = $item['title']; $content = "
"; file_put_contents($book_mark_name,$content_tail,FILE_APPEND); echo 'success';
以上php代码是小编给大家分享的将360浏览器导出的favdb的sqlite数据库文件转换为html的全部内容,希望大家喜欢。