I want to know how to set the cloud sdk in php.

and the cloud sdk will work on local server?

Thanks suresh Pegadapelli.

asked 12 Jun '12, 14:40

sureshpegadapelli's gravatar image


edited 14 Jun '12, 09:12

Vasily%20Panferov's gravatar image

Vasily Panferov ♦♦

Please refer to PHP sample. You'll have to provide your credentials by setting $applicationId and $password variables, specify the relative path to the images folder and the image file and once that is done you can run the sample using this command line: php -f <path to the sample file>.

Cloud OCR SDK doesn't run on local server, it only runs as the cloud service.


answered 13 Jun '12, 11:57

Dmitry%20Me's gravatar image

Dmitry Me ♦♦

@sureshpegadapelli: You can call Cloud OCR SDK methods from inside your web server (actually it can be any server or any standalone application with access to the Internet), but the call we go to Cloud OCR SDK servers anyway.

(13 Jun '12, 19:14) Dmitry Me ♦♦

Sometimes Curl does not open https URLs, but gives no error.

$url = $arr["resultUrl"]; // This is a https-URL (Line 68 PHP exampel)

My fix: replace line 72 with:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$response = curl_exec($ch);

answered 13 Jun '12, 14:55

Felix's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 12 Jun '12, 14:40

Seen: 2,220 times

Last updated: 15 Jun '12, 10:39

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal