PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   External Binaries (http://www.phpdig.net/forum/forumdisplay.php?f=36)
-   -   xls not recognized (http://www.phpdig.net/forum/showthread.php?t=1449)

mleray 10-13-2004 02:12 AM

xls not recognized
 
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 :
Quote:

url :http://10.37.1.240/Ressources-Humain...n/base_bio.xls

ROBOT_FUNCTIONS : regs
Array
(
[0] => Content-Type: text/plain
[1] => text
[2] => plain
)
I've changed this in robot_functions
PHP Code:

$extension substr($pathstrlen($path)-4strlen($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 03: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 ?


All times are GMT -8. The time now is 12:20 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.