|
09-26-2003, 08:49 AM | #1 |
Green Mole
Join Date: Sep 2003
Posts: 1
|
indexation pdf doc et xls
Dans le fichier « robot_functions.php » remplacer la partie de code :
$file_content = @file($uri); if (!is_dir($prefix)) { if (!@mkdir($prefix,0660)) { die("Unable to create temp directory\n";); } } $tempfile = $prefix.$temp_filename; $f_handler = fopen($tempfile,'wb'); if (is_array($file_content)) { fwrite($f_handler,implode('',$file_content)); } fclose($f_handler); $tempfilesize = filesize($tempfile); par: # $file_content = @file($uri); $handle = fopen ($uri,"rb";); $file_content = ""; do { $data = fread($handle,8192); if (strlen($data) == 0) { break; } $file_content .= $data; } while(true); fclose($handle); # if (!is_dir($prefix)) { # if (!@mkdir($prefix,0660)) { # die("Unable to create temp directory\n";); # } # } $tempfile = $prefix.$temp_filename; $f_handler = fopen($tempfile,"wb";); fwrite($f_handler,$file_content); # if (is_array($file_content)) { # fwrite($f_handler,implode('',$file_content)); # } fclose($f_handler); $tempfilesize = filesize($tempfile); Cette manipulation m'a permis l'indexation de mes fichiers xls, pdf et doc. |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
trouble indexation pdf | lolodev | External Binaries | 0 | 07-17-2008 01:47 PM |
help where I find External Binaries the pdf xls doc | gioducati | External Binaries | 0 | 08-12-2006 12:28 AM |
problem with .pdf and .doc files | mleray | External Binaries | 11 | 12-09-2004 11:26 PM |
xls doc pdf with windows | sktest | External Binaries | 1 | 02-09-2004 10:47 AM |