Hi. I am looking for some simple ways to access Google Docs and create/modify docs in PHP.
The google guys directed me to the Zend Framework. It looks too bloated and needless for me, so I am interested only in the Zend GData stuff. But this introduction page: http://framework.zend.com/manual/en/zend.gdata.html#zend.gdata.introduction.services tells me very little. I have downloaded that as a "standalone". The README inside says that installation is very simple and just needs that I add the "library" to my include_path. I did. But the demo code still did not work, because it required PHPUnit. Please someone update the documentation. So I now have PHPUnit and Zend Gdata installed. When I try to run the "InstallationCheck.php" in the /demos folder, I see this kind of errors: ---- Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Invalid chunk size "/gdata.youtube.com/schemas/2007/keywords.cat' term='Piano'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='Cover'/><title type='text'>Lollipop Piano Cover By David Sides</title><content type='html'><div style="color: #000000;font-family: Arial, Helvetica, sans-serif; font-size:12px; font-size: 12px; width: 555px;">" unable to read chunked body' in /home/MYDOMAIN/public_html/test/zend/library/Zend/Gdata/App.php:643 Stack trace: #0 /home/MYDOMAIN/public_html/test/zend/library/Zend/Gdata.php(220): Zend_Gdata_App->performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) #1 /home/MYDOMAIN/public_html/test/zend/library/Zend/Gdata/App.php(814): Zend_Gdata->performHttpRequest('GET', 'http://gdata.yo...', Array) #2 /home/MYDOMAIN/public_html/test/zend/library/Zend/Gdata/App.php(714): Zend_Gdata_App->get('http://gdata.yo...', NULL) #3 /home/MYDOMAIN/public_html/test/zend/library/Zend/Gda in /home/MYDOMAIN/public_html/test/zend/library/Zend/Gdata/App.php on line 643 ---- What is this? What's the purpose of "InstallationCheck.php" when it cannot even run itself to show me what I have installed and what not? Anyway, this php croak error is a little hard to understand -- google brings up nothing. All I want to do is: 1. Easily install Zend GData without installing Zend Framework the whole bloated shebang. 2. Have code that easily and simply allows me to: - Login to Google - Create a new spreadsheet with, say, 300 rows that I send it (need to know a sample XML sending format) - Allow me to edit that spreadsheet later (do I need to save some handles to my spreadsheet file in my DB? I presume so. Or should we query every time? And for editing large spreadsheets, do I maintain handles to specific rows or should I send the entire spreadsheet XML again? Etc.) - Delete that speadsheet if I so desire. This would seem to be the first and simplest thing anyone wanting to use the Google Docs api would want. But this simple example is hard to come by. How have people made this Zend thing work? Appreciate any pointers! Thanks!
