View Single Post
Old 02-25-2004, 07:19 AM   #1
alivin70
Orange Mole
 
alivin70's Avatar
 
Join Date: Sep 2003
Posts: 40
Bug fix for pdftohtml

It's documented that pdstohtml doesn't work with phpdig and PHP 4.2.x.

That due to a bug in the PHP function file($file) when a remote url is passed to it.

Here is a patch that allow pdftohtml work with PHP 4.2.x.
Find the line
PHP Code:
$file_content = @file($uri); 
in robot_function.php and replace it with
PHP Code:
//$file_content = @file($uri);
// Bug fix -- 2004/02/25 By VinSoft --
$remoto fopen($uri,'rb');
while(!
feof($remoto)) {
        
$file_content[]=fread($remoto,4096);

Now my pdftohtml (and xls2csv) works fine!

Bye for now
Alivin 70
alivin70 is offline   Reply With Quote