Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Will you post your php script?

Received: by 10.220.198.200 with SMTP id ep8mr2024790vcb.15.1285524353737;
        Sun, 26 Sep 2010 11:05:53 -0700 (PDT)
X-BeenThere: apitoolbox@googlegroups.com
Received: by 10.220.88.170 with SMTP id a42ls60172vcm.3.p; Sun, 26 Sep 2010
 11:05:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.124.14 with SMTP id s14mr90798vcr.54.1285524350498; Sun,
 26 Sep 2010 11:05:50 -0700 (PDT)
Received: by k10g2000yqa.googlegroups.com with HTTP; Sun, 26 Sep 2010 11:05:50
 -0700 (PDT)
Date: Sun, 26 Sep 2010 11:05:50 -0700 (PDT)
In-Reply-To: <68b875e0-7055-42dd-b956-0f851c7ba612@j18g2000yqd.googlegroups.com>
X-IP: 95.21.105.131
References: <00648e3d-0b45-4142-a46e-bb1f59aff831@28g2000yqm.googlegroups.com> <68b875e0-7055-42dd-b956-0f851c7ba612@j18g2000yqd.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
 AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.89 Safari/532.5,gzip(gfe)
Message-ID: <d15e96c5-c75f-4597-98ff-6657038220d0@k10g2000yqa.googlegroups.com>
Subject: Re: Will you post your php script?
From: Eureka <lucasact...@gmail.com>
To: API Toolbox <apitoolbox@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


Oh thanks for your code. In fact it's better for me to have the answer
in the php file, I mean, I don't need to use the code in js, I can do
what I want in php so with this curl acces, Do I have the "post error"
fixed?

On Sep 26, 6:45=A0pm, Vision Jinx <vjn...@gmail.com> wrote:
> Hello,
>
> The script I am using is a custom one for my site, but here is the
> basics for you
>
> http://paste-it.net/public/e417b17/
>
> This is for use with an AJAX Post request. You send the post request
> to this script, it will use PHP Curl to get the JSON data from Google,
> then return the JSON string back to your AJAX callback handler.
>
> I did notice after I pasted it that I missed adding the userip param
> (which Google now requires) so you will want to add that, but I think
> the code is pretty self explanitory and you should not have any
> problems going through the comments I made for it.
>
> Cheers!
> Vision Jinx
>
> On Sep 26, 10:12=A0am, Eureka <lucasact...@gmail.com> wrote:
>
>
>
> > Hi!
>
> > I'm trying to call google's API to translate some text. Looking for
> > the web I only found that you code a php script to send data with POST
> > method in order to avoid the GET limitation. I'm wondering to know if
> > you will post your php script to avoid this error or at last if you
> > could help me with my php code to avoid it.
>