Pull the contents of a Google doc into a PHP page.
Here's what you need to do to make this work:
- Grab the index.php file and put it on a web server that's running PHP.
- 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.
- Publish the Google Doc to the web, using Google Docs' File->Publish to the Web (or File->Advanced->Publish to the web) menu item.
- Copy the URL it gives you, and paste that URL into index.php as the value of $published_doc_url on line 9.
- 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.