PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 08-04-2004, 01:39 AM   #1
simonced
Green Mole
 
Join Date: Feb 2004
Location: france
Posts: 6
shell indexing problem

Hi everybody,

I encounter a small problem. It doesn"t seem to be difficult to solve, but I don't manage to find on my own.

Here's the problem.
I want to cron a daily indexing.
But, first, I try on command line :
---
$ php-cgi /[...absolute path...]/spider.php
Content-type: text/html
X-Powered-By: PHP/4.3.1

$
---
That's all !!! I get nothing else.
I watched into the spider.php and discovered that the auth is not used when in command line. But, I discovered that the script stops running at the line :
PHP Code:
include "$relative_path/includes/config.php"
.
So, I don't get what happen.

Thanks by advance for you help.
simonced is offline   Reply With Quote
Old 08-04-2004, 01:09 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. You need to add the absolute path to the if statement in the config file. See this for an example.
__________________
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 08-05-2004, 08:24 PM   #3
simonced
Green Mole
 
Join Date: Feb 2004
Location: france
Posts: 6
Hi, Thanks for the answer.
I studied the case, but, the absolute path was right, so, I know it was nt from there.
To an other hand, I modified the if statement, and now, it's working.

I'm not at office right now, but if you're interrested, I can come back and write the modified line here for further assistance.

Thank you.
simonced is offline   Reply With Quote
Old 08-06-2004, 03:26 AM   #4
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Please do post your modification. It might help the next person.
vinyl-junkie is offline   Reply With Quote
Old 08-06-2004, 10:54 PM   #5
simonced
Green Mole
 
Join Date: Feb 2004
Location: france
Posts: 6
OK,
I'll post it on Monday Morning.
Bye.
simonced is offline   Reply With Quote
Old 08-10-2004, 01:10 AM   #6
simonced
Green Mole
 
Join Date: Feb 2004
Location: france
Posts: 6
Hi,
Oops, sorry, it's tuesday, but here is my modification :
//in the config.php file
if ((!isset($relative_script_path)) && ($relative_script_path != ".") && ($relative_script_path != "..")) {
print "Path not recognized";
exit();
}

bye, have nice indexing !
simonced is offline   Reply With Quote
Old 08-10-2004, 02:05 AM   #7
lighthouse
Green Mole
 
Join Date: Mar 2004
Posts: 20
Quote:
Originally posted by simonced
OK,
I'll post it on Monday Morning.
Bye.

Can you post your fix...
I too am having the same issue.

Thanks
LH
lighthouse is offline   Reply With Quote
Old 08-10-2004, 05:06 AM   #8
lighthouse
Green Mole
 
Join Date: Mar 2004
Posts: 20
To confirm....
the only way i could get the cron working, was to remove the entire if statement altogether.....

Can anyone confirm if this will cause problems...? At the moment, everything seems to work fine !

LH
lighthouse is offline   Reply With Quote
Old 08-15-2004, 03:01 PM   #9
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. It's not a good idea to remove the if statement. All you need to do is add to the if statement the path that is not there.
__________________
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
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
Indexing problem... afrim_05 Troubleshooting 3 11-24-2005 03:51 AM
shell indexing problem Patrick_2a Troubleshooting 1 11-06-2005 10:30 AM
Shell command no indexing noel Troubleshooting 3 10-27-2005 10:22 AM
Shell Spidering Quits After Indexing A Few Pages vinyl-junkie Troubleshooting 11 10-09-2004 06:08 PM
auto indexing without shell command takpoli How-to Forum 1 04-29-2004 07:26 AM


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


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