Skip to content

kerri-hicks/google_docs_cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

google_docs_cms

Pull the contents of a Google doc into a PHP page.

Here's what you need to do to make this work:

  1. Grab the index.php file and put it on a web server that's running PHP.
  2. Create a Google Doc, copy the full URL of that Google Doc from your browser, and paste it into index.php as the value of $google_doc_url on line 6.
  3. Publish the Google Doc to the web, using Google Docs' File->Publish to the Web (or File->Advanced->Publish to the web) menu item.
  4. Copy the URL it gives you, and paste that URL into index.php as the value of $published_doc_url on line 9.
  5. Save index.php and load your page in a web browser.

NB: Any changes you make to the Google Doc will automatically propogate to your new document -- but it may take up to five minutes for the changes to display.

About

Pull the contents of a Google doc into a PHP page.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages