PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 01-13-2004, 02:24 PM   #1
drjohnchadwick
Green Mole
 
Join Date: Jan 2004
Posts: 8
Spider with Windows Scheduler?

We have successfully installed PhpDig on a Windows 2003 server running Apache 2.048 and PHP 4.3.2. You can view it at http://www.stlib.state.nm.us/phpdig/search.php.

This is still a bit of a work in progress, but the big issue is that I need to crawl one of the sites between 10 p.m. and 6:30 p.m. I know this can be done easily in Unix with a chron job, but can the same or similar goal be done using Windows Scheduler?

Thanks,

John Chadwick
jchadwick@stlib.state.nm.us
drjohnchadwick is offline   Reply With Quote
Old 01-13-2004, 06:35 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Perhaps something in this thread might help.
__________________
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 01-14-2004, 08:28 AM   #3
drjohnchadwick
Green Mole
 
Join Date: Jan 2004
Posts: 8
Thanks, I am trying this, but I am having some problems similar to what is described in another thread. I do the command lie which is:

C:\php> php.exe -f "Program Files\Apache Group\Apache2\htdocs\phpdig\admin\spider.php" http://www.state.nm.us

What I get are the following error messages. I have tried modifying the spider as per the instructions in another thread and no luck. If I can get the command line to work then I can create a .bat file to run and under Windows Scheduler.

Thanks,

John

<b>Warning</b>: main(): Failed opening './includes/config.php' for inclusion (i
nclude_path='.;c:\php4\pear') in <b>C:\Program Files\Apache Group\Apache2\htdocs
\phpdig\admin\spider2.php</b> on line <b>92</b><br />
<br />
<b>Warning</b>: main(./admin/robot_functions.php): failed to open stream: No su
ch file or directory in <b>C:\Program Files\Apache Group\Apache2\htdocs\phpdig\a
dmin\spider2.php</b> on line <b>93</b><br />
<br />
<b>Warning</b>: main(): Failed opening './admin/robot_functions.php' for inclus
ion (include_path='.;c:\php4\pear') in <b>C:\Program Files\Apache Group\Apache2\
htdocs\phpdig\admin\spider2.php</b> on line <b>93</b><br />
<br />
<b>Warning</b>: main(./admin/debug_functions.php): failed to open stream: No su
ch file or directory in <b>C:\Program Files\Apache Group\Apache2\htdocs\phpdig\a
dmin\spider2.php</b> on line <b>94</b><br />
<br />
<b>Warning</b>: main(): Failed opening './admin/debug_functions.php' for inclus
ion (include_path='.;c:\php4\pear') in <b>C:\Program Files\Apache Group\Apache2\
htdocs\phpdig\admin\spider2.php</b> on line <b>94</b><br />
<br />
<b>Fatal error</b>: Call to undefined function: phpdigprnmsg() in <b>C:\Progra
m Files\Apache Group\Apache2\htdocs\phpdig\admin\spider2.php</b> on line <b>109<
/b><br />
drjohnchadwick is offline   Reply With Quote
Old 01-14-2004, 09:45 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. It looks like a path issue. Try one of the following instead:
Code:
C:\php> php.exe -f "C:\Program Files\Apache Group\Apache2\htdocs\phpdig\admin\spider.php" http://www.state.nm.us

C:\php> php.exe -f "C:\progra~1\apache~1\Apache2\htdocs\phpdig\admin\spider.php" http://www.state.nm.us

C:\Program Files\Apache Group\Apache2\htdocs\phpdig\admin> C:\php\php.exe -f spider.php http://www.state.nm.us
__________________
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 01-14-2004, 10:04 AM   #5
drjohnchadwick
Green Mole
 
Join Date: Jan 2004
Posts: 8
Bingo! That was the problem. Thanks!!!

John
drjohnchadwick is offline   Reply With Quote
Old 01-14-2004, 10:15 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Which one did you use?
__________________
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 01-14-2004, 10:28 AM   #7
drjohnchadwick
Green Mole
 
Join Date: Jan 2004
Posts: 8
I used the third one option:

C:\Program Files\Apache Group\Apache2\htdocs\phpdig\admin> C:\php\php.exe -f spider.php http://www.state.nm.us

John
drjohnchadwick is offline   Reply With Quote
Old 01-14-2004, 10:37 AM   #8
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Okay, thanks.
__________________
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 01-14-2004, 11:28 AM   #9
drjohnchadwick
Green Mole
 
Join Date: Jan 2004
Posts: 8
I also found that with the solution, by leaving off the URL I am able to force phpdig to spider all the sites in my list.
drjohnchadwick is offline   Reply With Quote
Old 01-14-2004, 11:53 AM   #10
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Yes, that is the default.

Visit here for more options and here for some extra explanation.
__________________
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
Spider CLI call under Windows fails [Workaround included] shockfreezer Bug Tracker 0 06-22-2006 07:58 AM
Windows-1250 vilda How-to Forum 1 07-23-2005 01:05 PM
Help!!! Windows....Linux problems? NewDigger Troubleshooting 3 11-20-2004 09:32 AM
Hello, I use a Windows Server ClausBrell The Mole Hole 2 09-30-2004 05:35 AM
catdoc with windows fred External Binaries 1 07-29-2004 11:06 AM


All times are GMT -8. The time now is 11:44 PM.


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