mzubairsaleem / gtranslate-api-php

Automatically exported from code.google.com/p/gtranslate-api-php
GNU General Public License v3.0
0 stars 0 forks source link

Urgently required a GTranslate php class, for Google Translation API v2 #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The GTranslate class along with an example script for api v2, was posted 
sometime back in April 2011, I tried using the two but it did not work. I have 
attached the two php files here. Can someone please remove whatever bugs that 
are there. Its very urgent!!!!!!!!!!! 

Original issue reported on code.google.com by rohitas...@ranosys.com on 17 Nov 2011 at 12:16

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, have you found the problem?  
I have the same problem with GTranslate

Original comment by abonor...@gmail.com on 4 Dec 2011 at 5:30

GoogleCodeExporter commented 8 years ago
Hi, Add this line in the GTranslate.php Class. 

line 380

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

It works perfectly.

Original comment by edua...@gmail.com on 5 Dec 2011 at 11:00

GoogleCodeExporter commented 8 years ago
Hi,
I just added this line at line no. 380 of GTranslate.php - 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

along with this I enabled the CURL by uncommenting the curl extension line in 
the php.ini file of web server(by getting rid of semicolon just before)- 
extension=php_curl.dll

All translations are getting carried out with ease, the Gtranslate.php is 
working perfectly :-) 

Thank you all!

Original comment by rohitas...@ranosys.com on 5 Dec 2011 at 1:00