How to setup the cloud sdk in php?


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

and the cloud sdk will work on local server?

Thanks suresh Pegadapelli.

Was this article helpful?

1 out of 1 found this helpful



  • Avatar
    Dmitry Mesheryakov

    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.

  • Avatar

    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);
  • Avatar
    Dmitry Mesheryakov

    @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.


Please sign in to leave a comment.