balas Posted September 25, 2007 Share Posted September 25, 2007 hi i have used this following script in the linux system to read the ms doc (Say Resume) files. It is working fine in the terminal mode and displaying the output content of the ms word, but the same script doesnt bring the output in browser to display in web page. Is there any solution? <? function catdoc_file($fname) { $ret = shell_exec('catdoc -ab '.escapeshellarg($fname) .' 2>&1'); if (preg_match('/^sh: line 1: catdoc/i',$ret)) { echo "err"; return false; } return trim($ret); } //echo catdoc_string("sfdsf"); echo $a=catdoc_file("resume.doc"); ?> Thanks Bala Quote Link to comment https://forums.phpfreaks.com/topic/70655-reading-ms-word-doc-from-linux-shell-script/ Share on other sites More sharing options...
rarebit Posted September 25, 2007 Share Posted September 25, 2007 Have you any output??? Is it installed for server user? Quote Link to comment https://forums.phpfreaks.com/topic/70655-reading-ms-word-doc-from-linux-shell-script/#findComment-355092 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.