PHP programs written to help mothers remotely access chrome bookmarks ~

Source: Internet
Author: User
PHP programs written to help mothers remotely access chrome bookmarks ~
My mother sometimes browses the online shop online, and uses chrome to collect things she liked or needed. After I came back, I helped her take the payment.

How to browse her favorite items is a problem. if you want to operate on her computer, you need to log on to the user and install security controls to get a lot of things, and I like to fold them in advance, buy again. In addition, her computer is a little slow, and every time it takes half a day.

I thought about it and wrote a simple program. You can remotely and locally access chrome favorites files.

I packed the program to put the network disk, please the teacher criticized: http://pan.baidu.com/s/1pJ18ZYb

The program is developed using php, the popular CodeIgniter framework is used, and the front-end uses zTree.

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

I packed the program to put the network disk, please the teacher criticized: http://pan.baidu.com/s/1pJ18ZYb

Younger brother I micro blog: http://weibo.com/cavalryblack something Wood contact ~~



In addition, I would like to share with you that the rice discount is very interesting. before you want to buy something, put the title you want to buy in the rice discount, and then you will have a rebate. Of course, the return rate is very low compared with the purchase price. But now I have returned more than 200 yuan. My family's water fees this year are basically paid with rice turning back money ~~ Addresses: http://www.mizhe.com/#NEWnZ2ZUl2ZFp2

  1. Very simple. the main code is as follows:
  2. Configuration File: \ Bookmarks \ application \ config \ base_config.php
  3. /* Basic configuration */
  4. $ Config ['where'] = 'remote'; // remote access or local access, local by default, remote
  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') // use the parameter passing 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 ['ots'] ['bookmark _ bar']);
  33. $ This-> load-> view ('bookmarks _ view', $ data );
  34. }
  35. Else
  36. {
  37. $ This-> load-> view ('no _ find_view ', $ data );
  38. }
  39. }
  40. }

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.