![]() |
PHPDIG_DIR & cron task
documentation:
Quote:
1.) What is PHPDIG_DIR in Windows ? I can't start this from DOS-Prompt. I try: "C:\php\php.exe -f D:\inetpub\wwwroot\phpdig\admin\spider.php http://host.mydomain.com" (Error ...function not found). It seems it found no phpdig_functions.php. (//test on cgi or http is in spider.php - Line 23 ff) 2.) If this works i will update my pages every night at 11pm. But recommended periodicity is 7 days ?? How can i index daily my new pages - this are 3 to 4 HTML-Pages generated by a content management system. I will not update this manually ?? Thanks -Frank- |
Hi. Is DOCROOT=D:\data\inetpub\wwwroot or DOCROOT=D:\inetpub\wwwroot? What version of PHP do you have? In 4.3.0 you can pass the directory and file names, but that may not work with previous versions.
|
I have test today again:
PHP4 = C:\PHP DOCRoot = D:\InetPub\wwwroot\web PHPDig-Root = D:\InetPub\wwwroot\web\phpdig I call from DOS prompt! C:\PHP> php.exe -f "D:\InetPub\wwwroot\web\phpdig\admin\spider.php" http://www.mydomain.ch The instruction "renice" is either wrongly written or could not not be found (linie 80). <b>Fatal error</b>: Call to undefined function: phpdigprnmsg() in <b>D:\InetPub\wwwroot\web\phpdig\admin\spider.php</b> on line <b>110</b><br /> C:\PHP> press space to continue... I have Print "$relative_script_path"; = . (one Point) ?! I have also Test: php.exe -f "D:\InetPub\wwwroot\web\phpdig\admin\spider.php http://www.mydomain.ch" php.exe -f D:\InetPub\wwwroot\web\phpdig\admin\spider.php http://www.mydomain.ch Any hint ? FRANK |
Please can anyone post the complete CALL for WIN command line spider complete Site !??
Thanks Frank |
Quote:
Quote:
In the admin files, try $relative_script_path = '..'; (two dots) and leave $relative_script_path = '.'; (one dot) in the main search index file. One dot means go into the same directory, and two dots mean go back one directory. If that doesn't work, try forcing the path by setting $relative_script_path = 'd:/InetPub/wwwroot/web/phpdig'; The win command you're using is working fine, as the fatal error happens when spider.php tries to call the phpdigPrnMsg function. |
Okay thanks. i tried this today - it works:
spider.php - comment Line 80 // print @exec('renice 18 '.getmypid()).$br; - add in Line 93: $relative_script_path = '..'; // two dot CALL php.exe -f "D:\InetPub\wwwroot\web\phpdig\admin\spider.php" http://www.mydomain.ch Is this a windows related Bug ? Fixed in next Version possible ? FRANK |
Hi. I don't think they are bugs. My guess is that your machine doesn't have renice. The one dot versus two dots just indicates what directory to look in. Glad PhpDig is now working for you.
|
I would like to know (I'm new to php) how would I run a cron in linux apache 1.3. I also new to crons. can I have them look up more than one url?
David |
Hi. An example can be found here.
|
All times are GMT -8. The time now is 11:40 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.