You are here: antiword through php « PHP Programming Language « IT news, forums, messages
antiword through php

Posted by guilesf2@hotmail.com on 05/16/07 15:32

Hello -
I've installed antiword and it is working fine from the command line.
however, running it through php gives no output, BUT, if I run the
script
through php cli, it works fine.

<?php
exec('/usr/local/bin/antiword /users/mm/sites/test.doc', $output);
var_dump($output);
?>

in a browser I get an empty array, but on the command line
running > php test.php
returns an array with the proper text.

I'm running php5.2.2 from Marc Liyanage on OS X tiger with apache 1.3

antiword is 777, could it be some other security setting I'm missing?
I've also tried using passthru and shell_exec with the same results.

$out = shell_exec('ls -al');
echo "<pre>$out</pre>";

does work fine in a browser and on the command line.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация