Hi I am creating a small function for ocr for this purpose I installed Tesseract using reference (URL : http://hanzratech.in/2015/01/16/ocr-using-tesseract-on-ubuntu-14-04.html). On terminal when I run command /usr/local/bin/tesseract /opt/lampp/htdocs/catcha1/text.png newfile -l eng
it generate a file /home/myusername/newfile.txt but when I run the same command using php it doesn't work . My code is here
<?php
error_reporting(E_ALL);
$com = "/usr/local/bin/tesseract /opt/lampp/htdocs/catcha1/text.png newfile -l eng";
$res = exec($com);
?>
Even I have given full permission to tesseract still I can't debug the issue.