PHP Classes

Files missing?

Recommend this page to a friend!

      MySQL Database Library  >  All threads  >  Files missing?  >  (Un) Subscribe thread alerts  
Subject:Files missing?
Summary:File references
Messages:3
Author:Gary England
Date:2015-06-21 13:17:56
 

  1. Files missing?   Reply   Report abuse  
Picture of Gary England Gary England - 2015-06-21 13:17:56
You refer to the following files on lines 25 and 26:

protected $_antiword_ = "C:/antiword/antiword.exe";
protected $_xpdf_ = "C:/xpdf/bin32/pdftotext.exe";

they are also apparently related to code running in Windows ...

  2. Re: Files missing?   Reply   Report abuse  
Picture of Dave Smith Dave Smith - 2015-06-21 15:07:07 - In reply to message 1 from Gary England
Looks like those are executables he is using in a shell to read doc and pdf files. If they aren't found then the class will return the integer 0, which I am assuming is being used as false.

If you have the files available on your system, you can provide your own path to them. If you don't, then attempting to read these file types will fail.

Dave

  3. Re: Files missing?   Reply   Report abuse  
Picture of Justin Eldracher Justin Eldracher - 2015-06-21 16:06:03 - In reply to message 2 from Dave Smith
Right, those are the paths to shell functions to read .doc and .pdf files with the read() method. A user would change that path to the executables on his computer - if he wants to read doc and pdf files. If you don't want to read those files, those variables are never used.