I've been stumped on how to use curl in php, for running this piece of code.
$ curl -F userfile=@Image_File_Name \
-F outputencoding="utf-8" \
-F outputformat="txt" \
http://Server_Address/cgi-bin/submit.cgi >result.txt
Could anyone help me? I've tried the following:
$cmd="curl -F userfile=$file_new \
-F outputencoding="utf-8" \
F outputformat=txt \
http://maggie.ocrgrid.org/cgi-bin/weocr/ocr_scene.cgi >result.txt"
exec($cmd,$result);
echo $result;
but it does not work.
Thanks!