View Single Post
Old 06-15-2005, 05:57 AM   #8
sushie
Former Member
 
Join Date: May 2005
Posts: 5
Smile yeah it works now

thanks to your support, some help from my server-admin and lots of hours searching for a solution i finnaly got it work!

the problem was that somehow the 'pstotext' did not find the 'ghostscript'-library when run per web-php-script.

i had to add "export PATH=$PATH:my_path_to_lib; " to the exec command in 'robot_functions.php'...

here's the full change-instruction in case anyone runs into the same problem:

in config.inc (some where near 'EXTERNAL TOOLS SETUP') add:
PHP Code:
define('PHPDIG_PATH_TO_BIN','/usr/local/bin'); 
in robot_functions.php (near line #1089) find:
PHP Code:
if ($usetool) {
  
rename($tempfile1,$tempfile2);
  
exec($command,$result,$retval); 
and replace with:
PHP Code:
if ($usetool) {
  if(
PHPDIG_PATH_TO_BIN)
    
$setpath="export PATH=$PATH:".PHPDIG_PATH_TO_BIN."; ";
  
rename($tempfile1,$tempfile2);
  
exec($setpath.$command,$result,$retval); 
maybe that helps someone
*cheers*
sushie is offline   Reply With Quote