Share the php code to convert the sqlite database file of favdb exported by the 360 browser to an html_php instance

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.