PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Spider in command line : 3 errors (http://www.phpdig.net/forum/showthread.php?t=299)

Yannick 12-16-2003 06:22 AM

Spider in command line : 3 errors
 
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 08: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.
PHP Code:

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.
PHP Code:

$argv null;
$argc null


Yannick 12-19-2003 03:01 AM

You must also set

$relative_script_path='..';


All times are GMT -8. The time now is 07:15 AM.

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