PDA

View Full Version : xls not recognized


mleray
10-13-2004, 03:12 AM
Why aren't my Excel files recognized as application vnd.ms-excel ?

This is what I obtain when I try to index one of them :
url :http://10.37.1.240/Ressources-Humaines/evaluation/base_bio.xls

ROBOT_FUNCTIONS : regs
Array
(
[0] => Content-Type: text/plain
[1] => text
[2] => plain
)

I've changed this in robot_functions
$extension = substr($path, strlen($path)-4, strlen($path));
echo "extension ".$extension;
if ($regs[1]=="text" && $extension==".xls")
$status = "MSEXCEL";
else if ($regs[1] == "text") {
switch ($regs[2]) {
case 'plain':
$status = 'PLAINTEXT';
break;
case 'html':
$status = 'HTML';
break;
default :
$status = "NOFILE";
$stop = true;
}
}
And now excel files are converted with xls2csv but still not indexed :cry:
(no green check mark and nothing in spider table...)

mleray
10-13-2004, 04:22 AM
I see that I've my files converted in temp files (phpdig-1.8.3\admin\temp\xxx.tmp)
But nothing in tempspider table...

Do I forgot something ? an option to xls2csv ?