View Full Version : no indexing with catdoc and xls2csv

04-01-2004, 10:58 PM

well I have a problem with catdoc and xls2csv (on linux system) :
I have set correctly the path, and change all variables in config.php like this :

define('PHPDIG_OPTION_MSWORD','-s 8859-1');


but phpdig doesn't index these files.
it's strange because with pdf (with pdftotext) , I have no problem

I wonder if it is because catdoc and xls2csv return on STDOUT
whereas pdftotext writes in a file .txt.

the path of catdoc and xls2csv are symbolic links but I don't think it's a problem. By the way, when I execute catdoc on line command, it works normally.

What can I do to solve this problem ?

04-05-2004, 01:23 AM
well i've added some lines in robot_functions.php to find the problem. here they are :

echo $command . "<br>"; // try running this from shell in admin dir
print_r($result); // holds the output sent to STDOUT
echo "<br>" . $retval; // is zero if command succeeded

and when spidering comes through a pdf, a doc or a xls file, I can read this :
/usr/opt/www/juju/catdoc/bin/catdoc -s 8859-1 ../admin/temp/53771962.tmp
Array ( )

so it appears it returns nothing, even for pdf files (i had believed that it works for pdf files because of the green quote but actually it seems it doesn't)
its very strange, maybe the temp files aren't created ?

04-09-2004, 07:19 AM
Hi. What version of PHP? Perhaps try this (http://www.phpdig.net/showthread.php?threadid=570) thread.