How to use Tika via PHP when both installed on one server? -
- i need make internal website allows users upload .doc, .pdf, .xls files , see text in textarea box.
- i have created site in php point user can upload files.
- i have installed tika on server , @ command line can type
java -jar tika-app-1.10-snapshot.jar -m manu.pdf > output.txt
creates text need in output file.
what best way call tika php in order plain text of uploaded file php?
searching around find:
- php code makes calls "tika server" e.g. curl
- php wrapper classes tika seem use tika on same server php installed on, have not gotten of them work.
- alternatively, call tika via
exec
command.
but i'm not sure easiest way proceed.
if on own managed servers, , both php , tika locations known you, use exec
. or if prefer better control (which suspect not need) use shell_exec
if have performance issues, and/or need scale thing, there room more elaborate solution.
ReplyDeleteiFind Data Recovery Enterprise Crack>I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me