PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   External Binaries (http://www.phpdig.net/forum/forumdisplay.php?f=36)
-   -   pdf config under windows - is this right? (http://www.phpdig.net/forum/showthread.php?t=159)

scuba303 10-19-2003 11:37 PM

pdf config under windows - is this right?
 
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 07:41 PM

Hi. Is it pstotxt3.exe or pstotext3.exe?

scuba303 10-21-2003 04:22 AM

you are right... an e too much.. thx.. ;-)

Leigh 10-24-2003 08: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:

PHP Code:

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:

Quote:

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 09:23 AM

I managed to fix the problem myself.

The line should be:
PHP Code:

define('PHPDIG_PARSE_PDF','d:\\\\pdftotext\\\\pstotxt3'); 

There are double backslashes and no ".exe" extension.


All times are GMT -8. The time now is 12:06 AM.

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