PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Bug Tracker (http://www.phpdig.net/forum/forumdisplay.php?f=27)
-   -   Spider CLI call under Windows fails [Workaround included] (http://www.phpdig.net/forum/showthread.php?t=2486)

shockfreezer 06-22-2006 06:58 AM

Spider CLI call under Windows fails [Workaround included]
 
Hi there,

today i had to call the spider for reindexing on Windows from the CLI. (Windows Taskplaner)
The problem was that the spider could'nt include some files, because the variable $relative_script_path in the file "/admin/spider.php" was wrong.

To fix that I had to replace the code on line 53 in the spider.php:
PHP Code:

$relative_script_path implode('/',$path_part); 

with this code:
PHP Code:

$relative_script_path realpath(dirname(__FILE__)."/.."); 

This fix should work for any installation type :)

Greez
shockfreezer


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

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