PHP remote access to chrome bookmarks to help your mother's program ~

Source: Internet
Author: User
My mother will sometimes surf the internet online shop, there are things like or need to use Chrome collection up, I came back to help her take the pay.

How to browse to her collection of things is a problem, if you go to her computer operation, need to login users, install security control what a lot of, and I like to fold on the rice first, then buy. Plus her computer is a bit slow, every time to get half a day.

Think about it and write a simple program. You can access your chrome collection files remotely and locally.

The program I put on the net plate, please teachers criticize correct: http://pan.baidu.com/s/1pJ18ZYb

The program was developed in PHP using the popular CodeIgniter framework, with the front end ztree.

Well, sometimes it's fun to write a program for something other than work.

The program I put on the net plate, please teachers criticize correct: http://pan.baidu.com/s/1pJ18ZYb

My little brother my Weibo: http://weibo.com/cavalryblack something wood Contact ~ ~



In addition, and everyone said, Rice break is very interesting, want to buy something before, put the title to buy Rice folded in a while, and then there is a rebate. Of course the return and the money to buy things than, very very little. But better than nothing, has now returned to me more than 200 yuan. My family this year's water is basically the money to turn back with rice ~ ~ Address Vegetarian: http://www.mizhe.com/#NEWnZ2ZUl2ZFp2
  1. Very, very simple, the main code is as follows:
  2. Configuration file: \bookmarks\application\config\base_config.php
  3. /* Basic Configuration */
  4. $config [' WHERE ']= ' remote ';//local access, default local locally, remote remotes
  5. $config [' address_local ']= ' C:\Program Files (x86) \chrome\google\chrome\user data\default\bookmarks ';//Local address
  6. $config [' Address_remote ']= "//192.168.0.17/default/bookmarks";//Remote Access address
  7. ?>
  8. Controller:
  9. Class Bookmarks extends Ci_controller {
  10. Public function Show ($default = ' local ')
  11. {
  12. $data [' Default ']= $default;
  13. $this->load->helper (' url ');
  14. $this->load->config (' base_config ');
  15. if ($default = = ' local ')//using the pass-through method
  16. {
  17. $file = $this->config->item (' address_local ');
  18. }
  19. ElseIf ($default = = ' Remote ')
  20. {
  21. $file = $this->config->item (' address_remote ');
  22. }
  23. Else
  24. {
  25. Exit (' Parameter error!! ');
  26. }
  27. if (file_exists ($file))
  28. {
  29. $json =file_get_contents ($file);
  30. $data [' json ']= $json;
  31. $arr =json_decode ($json, true);
  32. $data [' JSON ']=json_encode ($arr [' Roots '] [' bookmark_bar ']);
  33. $this->load->view (' Bookmarks_view ', $data);
  34. }
  35. Else
  36. {
  37. $this->load->view (' No_find_view ', $data);
  38. }
  39. }
  40. }
Copy Code
  • 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.