PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 02-25-2004, 08: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
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phpdigSessionRemove() fix zas Mod Submissions 0 05-14-2007 07:09 AM
Fix timeouts at fgets() jinkas Mod Requests 0 08-25-2004 03:02 PM
URL ? Bug Fix x0dus Mod Requests 2 08-20-2004 07:04 AM
Cleanup Engine Bug and Fix Charter Bug Tracker 0 03-08-2004 11:35 AM
Version 1.6.3 Highlight Bug & Fix Charter Bug Tracker 2 11-17-2003 01:16 AM


All times are GMT -8. The time now is 02:25 AM.


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