PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Call to undefined function: is_executable() (http://www.phpdig.net/forum/showthread.php?t=384)

switch 01-13-2004 05:45 AM

Call to undefined function: is_executable()
 
Web Server: Apache 2.0.48
PHP Version: 4.3.2
OS: Windows XP Pro (development server)
Error: Fatal error: Call to undefined function: is_executable() in C:\path\to\phpdig\admin\robot_functions.php on line 633

Hey guys! I managed to get the current version up and installed in less then 3 minutes on my local development server (w00t!), but I'm running into a problem. When I load up the admin interface and try to have it spider a URI, the next page (after clicking "Dig This !") shows the following error.

Call to undefined function: is_executable() in C:\path\to\phpdig\admin\robot_functions.php on line 633

Any advice? Thanks in advance :)

Charter 01-13-2004 08:06 AM

Hi. PhpDig 1.6.4+ has an option in the config file to bypass is_executable. Change define('USE_IS_EXECUTABLE_COMMAND','1'); to define('USE_IS_EXECUTABLE_COMMAND','0'); in the config file.

switch 01-13-2004 09:37 AM

Ahh, alright. Very groovy! *grins*. Thanks for the info..:)

Konstantine 03-13-2004 08:13 AM

I had the same problem and found, that function is_executable() will be from PHP 5 version for windows. As a result, why don't you use function function_exists? next code for robot_functions.php line ~674:

PHP Code:

if (USE_IS_EXECUTABLE_COMMAND == && function_exists("is_executable")) {
   
$is_exec_command_msword is_executable(PHPDIG_PARSE_MSWORD);
   
$is_exec_command_msexcel is_executable(PHPDIG_PARSE_MSEXCEL);
   
$is_exec_command_pdf is_executable(PHPDIG_PARSE_PDF);
}
else {
  
$is_exec_command_msword 1;
  
$is_exec_command_msexcel 1;
  
$is_exec_command_pdf 1;




All times are GMT -8. The time now is 08:22 PM.

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