PHP Classes

Found some bugs that should be fixed, on line 214 (I believe)...

Recommend this page to a friend!

      HTML to DOC Converter  >  All threads  >  Found some bugs that should be...  >  (Un) Subscribe thread alerts  
Subject:Found some bugs that should be...
Summary:Package rating comment
Messages:3
Author:Ryan Naddy
Date:2010-02-03 18:32:50
Update:2013-05-05 15:16:28
 

Ryan Naddy rated this package as follows:

Utility: Good
Consistency: Good
Examples: Good

  1. Found some bugs that should be...   Reply   Report abuse  
Picture of Ryan Naddy Ryan Naddy - 2010-02-03 18:32:50
Found some bugs that should be fixed, on line 214 (I believe) $matches sometimes returns 0, an if/else statement needs to be added, same with the following $matches. These can all be found in the _parseHtml method.

I did the following to fix the problem:

if(count($matches) > 0)
$head=$matches[1];
else
$head='';



if(count($matches) > 0)
$this->title = $matches[1];
else
$this->title = '';

  2. Re: Found some bugs that should be...   Reply   Report abuse  
Picture of Syed Naveed Hasan Syed Naveed Hasan - 2011-09-22 06:12:38 - In reply to message 1 from Ryan Naddy
Thanks Ryan, this helped a lot.

  3. Re: Found some bugs that should be...   Reply   Report abuse  
Picture of Shuvo Ahmed Shuvo Ahmed - 2013-05-05 15:16:28 - In reply to message 1 from Ryan Naddy
Thank it's huge help!!!
But it shows output in a html file. Does not start download a word file like pdf.