Google Sheets and PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NickBaer
    Nick Baer
    • Jun 2005
    • 1393

    #1

    Google Sheets and PHP

    Has anyone been successful getting PHP to read (and maybe write/edit) Google Sheets?

    4-5 hours later, I have found the worst awful collection of "how to's" and user experiences.

    Most are about v3, but it's been v4 for a long time.

    I think I have the Sharing done right, and Credentials.
    Made my first porno in 1986. Sold my first VHS in 1993. Did my first live Cam in 1994. Coach-Karl.com NickBaerGallery.com I host with MojoHost.com and To Buy or Sell Sites Imagine AI Content
  • NickBaer
    Nick Baer
    • Jun 2005
    • 1393

    #2
    I've been using PHPExcel with .xls files for a few years now. Learned tonight that Google Sheets downloads as .xlsx... but was able to find the fix for PHPExcel 1.8 to do .xlsx. Which is backwards compatible with .xls.

    So I at least have a workaround. Since I like to travel, I like using Sheets with the Chrome Excel extension, rather than .xls files and OO (which is a dead-end project, and LibreOffice is of no interest to me with the Excel Chrome Extension). I would like to take the next step beyond downloading/FTP'ing a .xlsx file to my webserver, to being realtime read (at least) of that spreadsheet data by my PHP script for the webpage in question..
    Made my first porno in 1986. Sold my first VHS in 1993. Did my first live Cam in 1994. Coach-Karl.com NickBaerGallery.com I host with MojoHost.com and To Buy or Sell Sites Imagine AI Content

    Comment

    • magneto664
      God Bless You
      • Aug 2014
      • 1470

      #3
      check https://zapier.com/ and https://ifttt.com maybe you find working solution
      magneto664 📧 gmail.com
      Cams.Zone 💘 Best CDN for Adult Content
      My Fav: 👍 Chaturbate 👍 Stripchat 👍 AdultFriendFinder

      Comment

      • NickBaer
        Nick Baer
        • Jun 2005
        • 1393

        #4
        Got it to work. Used a very simple method, because all I want to do is "read" a Google Sheets spreadsheet.

        When I get to the point that I want to "edit" or "write," then I will use Plan B, which is harder.
        Made my first porno in 1986. Sold my first VHS in 1993. Did my first live Cam in 1994. Coach-Karl.com NickBaerGallery.com I host with MojoHost.com and To Buy or Sell Sites Imagine AI Content

        Comment

        • robber
          Web Developer
          • Jan 2011
          • 264

          #5
          Have you considered using a csv file as it can be read with google sheets and you can easily read it directly into your web server. It also would allow for you to push amendments back by recreating the file which should be pretty simple with PHP

          It would save any messing on both sides 😊

          Comment

          • Barry-xlovecam
            It's 42
            • Jun 2010
            • 18083

            #6
            ^^^I like your thinking

            Comment

            Working...