Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 399407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:50:36+00:00 2026-05-12T16:50:36+00:00

How can I save data in unpublic google spreadsheet in PHP without using Zend

  • 0

How can I save data in unpublic google spreadsheet in PHP without using Zend Gdata lib?
I can’t use Zend libs, as it’s shown on google tutorials, because the php server on which I’m running the script is php v. 5.0.4.
I tried to find a solution using cUrl, but I can’t omit the problem with authentication when doc is unpublic.
How can I do it? If anyone has attempted it, please share the solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:50:37+00:00Added an answer on May 12, 2026 at 4:50 pm

    I have found out solution using curl and by creating a form for the google’s spreadsheet.
    For prepared spreadsheet you have to create a form, without options: Require sign-in to view this form and Automatically collect respondent’s username.
    Then check, using f.e. firebug, the form post uri and post data and use it to following script:

    #prepare post data
    $fields = array('backupCache' => '',
                'entry.0.single'=>urlencode($data['name']),
                'entry.1.single'=>urlencode($data['surname']),
                'pageNumber'=>urlencode(0),   
                'submit'=>'Submit');
    $fields_string = '';
    
    foreach($fields as $key=>$value) {
      $fields_string .= $key.'='.$value.'&';
    }
    
    rtrim($fields_string,"& ");
    $fields_string = substr($fields_string, 0, strlen($fields_string)-1);
    
    $ch = curl_init();
    #set curl_setopt for your preferences
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);    
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);    
    
    curl_setopt($ch, CURLOPT_POST, count($fields));
    curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
    
    #set proper form uri
    curl_setopt($ch, CURLOPT_URL, $formUri);
    curl_setopt($ch, CURLOPT_TIMEOUT, 120);
    
    $res = curl_exec($ch);
    curl_close($ch);
    

    May not be the most perfect solution but it works. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started using core data and I read that I can save the data
How can save data into a XML file without user prompt dialog in Action
Is there a way that i can save data on each step in wizard
How can I save data from an Excel sheet to .RData file in R?
I want to setup a table that can: Save the data on the user's
I try to create a form that can save a person's form data so
I'm developing web app that user can save his/her work to server. The data
I am creating a HTML layout where user can fill the data and save
class Node { FooType Data; // I can save Data to file with extension
I am using .aspx page, i want to save some data on button click,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.