Install Google Drive in localhost directory

旧街凉风 提交于 2019-12-12 03:49:42

问题


I use Xampp for localhost. I would like to have my files on localhost synced on different computers. I figure that I could just install Google Drive inte the Xampp directory eg. "localhost/Google Drive" (of course I will have to do this on all computers).

Before I do so I wonder if there would be any disadvantages doing so?

Also I wonder how to get "localhost/Google Drive/some-website/index.php" to work (note the space in "Google Drive")?


回答1:


The best way to do this is to use a local service that calls your google drive files by url, check the google drive documentation so you can do this integration.




回答2:


Couldn't wait.

Works like a CHARM! Did not experience any disadvantages.

I solved the "Google Drive space problem" like this:

  1. Quit Google Drive
  2. Move the folder to your "htdocs" folder and rename the folder to eg. "google-drive" (my location and filename is "C:\xampp\htdocs\google-drive")
  3. Restart Google Drive (it will say that folder could not be found)
  4. Choose the option to relink to the new folder.

Since I installed the Google Drive folder in "C:\xampp\htdocs\google-drive" I have the option to work on localhost without syncing files eg. files in "C:\xampp\htdocs\my-uncynked-folder".



来源:https://stackoverflow.com/questions/41751330/install-google-drive-in-localhost-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!