Hi, I will post our answer from support here for the benefit of other admins who may face this error,
The accounts for a large domain like yours can run in to Megabytes of data. To allow PHP to allocate the necessary resources, these parameters have to be adjusted in PHP.ini: memory_limit = 128M max_execution_time = 1800 Note that max_execution_time should take your network bandwidth into account. Also, you can consider paging your reports: http://code.google.com/apis/apps/reporting/google_apps_reporting_api.html#google_apps_tag_page Unfortunately, the support for paging is not build into the client libraries as of now. -Anirudh On Jan 30, 6:52 pm, "[email protected]" <[email protected]> wrote: > Thank you Anirudh, I have raised a ticket. > > On Jan 30, 12:35 pm, "Anirudh (Google)" <[email protected]> wrote: > > > Hi, > > > I tried obtaining an accounts report with PHP library for a very large > > domain and was able to get all the records. Can you please raise a > > support ticket so that we can examine your domain more closely ? > > Instructions and your support PINs are available in the control panel. > > > Thanks, > > Anirudh > > > On Jan 30, 2:14 pm, "[email protected]" <[email protected]> > > wrote: > > > > Any followups? > > > > On Jan 29, 10:14 am, "[email protected]" <[email protected]> > > > wrote: > > > > > I have set all the php settings in the php.ini file, checked to see > > > > cURL modue is installed properly, and also changed cURL options: > > > > > curl_setopt($ch, CURLOPT_ENCODING, ''); > > > > curl_setopt($ch, CURLOPT_USERAGENT, 'Internet Explorer/7.0 (gzip)'); > > > > > However, the result is still being truncated. Are there any other php > > > > settings I need to change? Or is the compression not done properly? > > > > > On Jan 29, 5:57 am, "Anirudh (Google)" <[email protected]> wrote: > > > > > > Hi Jack, > > > > > > The "max_input_time" setting can only be set in php.ini, .htaccess or > > > > > httpd.conf. As for the CURLOPT_ENCODING setting, you can simply leave > > > > > the value empty to enable all the available encodings like below > > > > > curl_setopt($ch, CURLOPT_ENCODING, ""); > > > > > > For the CURLOPT_USERAGENT, I suggest you to put something more > > > > > meaningful like: > > > > > curl_setopt($ch, CURLOPT_USERAGENT, 'YourAppName Version (gzip)'); > > > > > > Can you also make sure the PHP cURL module is installed properly by > > > > > looking at the phpinfo? > > > > > > Thanks, > > > > > > --Tony > > > > > > On Jan 28, 10:57 pm, "[email protected]" <[email protected]> > > > > > wrote: > > > > > > > The Compression is done by adding the following lines in the > > > > > > common.php file: > > > > > > > curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); > > > > > > curl_setopt($ch, CURLOPT_USERAGENT, 'gzip'); > > > > > > > Correct me if it's wrong.- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
