PDA

View Full Version : pdf config under windows - is this right?


scuba303
10-20-2003, 12:37 AM
hello. just wondering about the right configuration on a windows based system.

is this right?
define('PHPDIG_PARSE_PDF', 'c:\programme\ghostgum\pstotext\pstotext3.exe');

or do i have to regard capital and non-capital letters?

Charter
10-20-2003, 08:41 PM
Hi. Is it pstotxt3.exe or pstotext3.exe?

scuba303
10-21-2003, 05:22 AM
you are right... an e too much.. thx.. ;-)

Leigh
10-24-2003, 09:14 AM
Sorry to hijack this thread, but I have a similar question/problem.

I have copied the file pdftotext.exe to my IIS 4.0 web server into D:\PDFTOTEXT

I have amended the "config.php" file like this:


define('PHPDIG_INDEX_PDF',true);
define('PHPDIG_PARSE_PDF','d:\\\\pdftotext\\\\pdftotext.exe');
define('PHPDIG_OPTION_PDF','');

When I dig the site I get the error:

Fatal error: Call to undefined function: is_executable() in D:\Inetpub\wwwroot\Public\phpdig\admin\robot_functions.php on line 628

This error points to the configuration of the PDF content. My question is, do I have the syntax correct for the "config.php" file?

I have tried with single backslashes but get the same error.

PHP Version 4.3.3
OS is NT4.0 with latest service packs.

Leigh
10-24-2003, 10:23 AM
I managed to fix the problem myself.

The line should be:
define('PHPDIG_PARSE_PDF','d:\\\\pdftotext\\\\pstotxt3');
There are double backslashes and no ".exe" extension.