PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 12-16-2003, 07:22 AM   #1
Yannick
Green Mole
 
Join Date: Oct 2003
Location: Reims - France
Posts: 22
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
Yannick is offline   Reply With Quote
Old 12-16-2003, 09:47 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 12-19-2003, 04:01 AM   #3
Yannick
Green Mole
 
Join Date: Oct 2003
Location: Reims - France
Posts: 22
You must also set

$relative_script_path='..';
Yannick is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
spider from command line twanoo Troubleshooting 3 01-14-2005 11:04 AM
How To call spider from command line with debth options? jburnett How-to Forum 1 01-12-2005 02:03 PM
Spider.php is killed at the command line bforsyth Troubleshooting 2 12-05-2004 02:09 PM
Problem running spider from Command Line joshuag200 Troubleshooting 17 09-13-2004 08:57 PM
Command Line Spider spiders all sites Wayne McBryde Troubleshooting 3 01-27-2004 06:15 PM


All times are GMT -8. The time now is 03:19 AM.


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