PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Submissions (http://www.phpdig.net/forum/forumdisplay.php?f=24)
-   -   Bug fix for pdftohtml (http://www.phpdig.net/forum/showthread.php?t=570)

alivin70 02-25-2004 07:19 AM

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


All times are GMT -8. The time now is 08:56 AM.

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