PhpDig.net

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

Reply
 
Thread Tools
Old 05-11-2004, 11:56 AM   #1
takpoli
Green Mole
 
Join Date: Mar 2004
Posts: 10
I just moved to a hosting that "supports" both SSH and cron job. However, the following are the limitations:

1. I can not use crontab -u in SSH
2. The official cron job runs at my root which is 3 levels up from ADMIN directory.

Anyway out? Charter, could this be another enhancement to the new version of PHPDIG script?
takpoli is offline   Reply With Quote
Old 05-12-2004, 08:47 AM   #2
takpoli
Green Mole
 
Join Date: Mar 2004
Posts: 10
Because my cron job has to run in my root. I try the following:

1. I make another copy of spider.php and place it in my root.
2. I try "php spider.php cronlist >> spider.log"

I got "path not found" types of errors in spider.log

3. I change $relative_script_path from ".." to "public_html/phpdid" (line 31, that is my path).

I got nothing (0 byte) in spider.log file. Anything I did wrong? Did anyone try to run shell mode spider in directories other than admin? Please help!!!
takpoli is offline   Reply With Quote
Old 05-12-2004, 11:40 AM   #3
takpoli
Green Mole
 
Join Date: Mar 2004
Posts: 10
Finally, I get some output in spider.log:

<br />
<b>Warning</b>: main(../includes/config.php): failed to open stream: No such file or directory in <b>/home/takpoli/public_html/spider.php</b> on line <b>91</b><br />
<br />
<b>Warning</b>: main(): Failed opening '../includes/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/takpoli/public_html/spider.php</b> on line <b>91</b><br />
<br />
<b>Warning</b>: main(../libs/auth.php): failed to open stream: No such file or directory in <b>/home/takpoli/public_html/spider.php</b> on line <b>92</b><br />
<br />
<b>Warning</b>: main(): Failed opening '../libs/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/takpoli/public_html/spider.php</b> on line <b>92</b><br />
<br />
<b>Warning</b>: main(../admin/robot_functions.php): failed to open stream: No such file or directory in <b>/home/takpoli/public_html/spider.php</b> on line <b>96</b><br />
<br />
<b>Warning</b>: main(): Failed opening '../admin/robot_functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/takpoli/public_html/spider.php</b> on line <b>96</b><br />
<br />
<b>Warning</b>: main(../libs/htmlheader.php): failed to open stream: No such file or directory in <b>/home/takpoli/public_html/spider.php</b> on line <b>102</b><br />
<br />
<b>Warning</b>: main(): Failed opening '../libs/htmlheader.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/takpoli/public_html/spider.php</b> on line <b>102</b><br />
<head>

<br />
<b>Warning</b>: main(../libs/htmlmetas.php): failed to open stream: No such file or directory in <b>/home/takpoli/public_html/spider.php</b> on line <b>104</b><br />
<br />
<b>Warning</b>: main(): Failed opening '../libs/htmlmetas.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/takpoli/public_html/spider.php</b> on line <b>104</b><br />
</head>

<body bgcolor="white">

<img src="../phpdig_logo_2.png" width="200" height="114" alt="PhpDig PHPDIG_VERSION" /><br />

<h3><br />
<b>Fatal error</b>: Call to undefined function: phpdigprnmsg() in <b>/home/takpoli/public_html/spider.php</b> on line <b>108</b><br />
500 Can't connect to cronlist.txt:80 (Bad hostname 'cronlist.txt')


It seems some other places need to be change. Could anyone help? Thanks.
takpoli is offline   Reply With Quote
Old 05-12-2004, 01:26 PM   #4
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Try using absolute paths (e.g. /usr/bin/php -f /path/to/spider.php)

Don't forget the -f part
bloodjelly 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
Baffled by Cron Job Slider How-to Forum 2 12-15-2004 11:34 PM
Reindex without cron job? ark2424 How-to Forum 8 12-09-2004 05:54 AM
Cron Job on Linux/Apache Charter How-to Forum 6 06-03-2004 02:00 AM
Alternative to Cron job? jirving Troubleshooting 1 09-29-2003 05:07 PM
cron job David J Harmon How-to Forum 1 09-27-2003 07:20 AM


All times are GMT -8. The time now is 09:24 PM.


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