PDA

View Full Version : Spider in command line : 3 errors


Yannick
12-16-2003, 07:22 AM
Hello,

under Windows, spider launch in command line display 3 errors :

line 29 : PHP NOTICE : undefined variable argv
line 42 : PHP NOTICE : undefined variable argc
line 77 : use of undefined constant USE_RENICE_COMMAND

thanks,
Yannick

Charter
12-16-2003, 09:47 AM
Hi. Oops... move the following line to the top of the spider.php file. This should get rid of the "undefined constant" notice.

include "$relative_script_path/includes/config.php";

Also at the top of the spider.php file, set the following. This should get rid of the "undefined variable" notices.

$argv = null;
$argc = null;

Yannick
12-19-2003, 04:01 AM
You must also set

$relative_script_path='..';