Home > Backend Development > PHP Tutorial > A PHP program for remote accessing chrome bookmarks written to help mothers~

A PHP program for remote accessing chrome bookmarks written to help mothers~

WBOY
Release: 2016-07-25 08:47:34
Original
1029 people have browsed it
My mother sometimes goes online to browse online stores. If there is something she likes or needs, she uses Chrome to save it. When I come back, I help her take pictures and pay.

How to browse her collection is a problem. If you go to her computer to operate it, you need to log in as a user, install a lot of security controls and so on, and I like to fold it on rice folding first, and then buy it. In addition, her computer is a bit slow, so it takes a long time every time.

I thought about it and wrote a simple program. Chrome collection files can be accessed remotely and locally.

I have packaged the program and put it on the network disk. Please criticize and correct me: http://pan.baidu.com/s/1pJ18ZYb

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

Oh, sometimes it’s fun to write a program for things other than work.

I have packaged the program and put it on the network disk. Please criticize and correct me: http://pan.baidu.com/s/1pJ18ZYb

My Weibo: http://weibo.com/cavalryblack If you have any questions, please contact me Contact~~



In addition, let me tell you that rice folding is very interesting. Before you want to buy something, just put the title you want to buy into the rice folding and you can get a rebate when you click on it. Of course, the rebate is very, very small compared to the money spent on the purchase. But it’s better than nothing, and so far I’ve received more than 200 yuan back. My water bill this year is basically paid with rice rebate~~ Address: http://www.mizhe.com/#NEWnZ2ZUl2ZFp2 A PHP program for remote accessing chrome bookmarks written to help mothers~
  1. Very, very simple, the main code is as follows:
  2. Configuration file: Bookmarksapplicationconfigbase_config.php
  3. /* Basic configuration */
  4. $config['where']='remote';//Remote access or local access, default local, remote remote
  5. $config['address_local']='C:Program Files (x86)ChromeGoogleChromeUser DataDefaultBookmarks ';//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 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['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


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template