This article mainly introduces how to use php code to convert the sqlite database file of favdb exported from the browser 360 to html. If you need it, you can refer to the following section to share with you a piece of php code, this article explains how to convert the sqlite database file exported by the 360 browser to html. The following code is easy to understand. If you are interested, please take a look.
The php code is as follows:
<?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 = "
-
$title"."
"; file_put_contents($book_mark_name,$content,FILE_APPEND); } $content_tail = "
"; file_put_contents($book_mark_name,$content_tail,FILE_APPEND); echo 'success';
The above php code is a small Editor to share with you the favdb sqlite database file exported from the 360 browser into all the html content, I hope you like it.