![]() |
command line using winxp
Hi all...
just getting started with phpdig I'm trying run a command line call from winxp, but am receiving errors.. I know it must have something to do with the paths as set in config.php.. But I'm unclear as to what paths to use... Anyone shed any light on this issue? Thanks in advance..... this is the error message Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\indigoperl\apache\php>php -f c:\indigoperl\apache\htdocs\dig\admin\spider.php http://www.xyz.com.au <br /> <b>Warning</b>: main(./includes/config.php): failed to open stream: No such fil e or directory in <b>c:\indigoperl\apache\htdocs\dig\admin\spider.php</b> on lin e <b>85</b><br /> <br /> <b>Warning</b>: main(): Failed opening './includes/config.php' for inclusion (i nclude_path='.;..;../..;../../..') in <b>c:\indigoperl\apache\htdocs\dig\admin\s pider.php</b> on line <b>85</b><br /> <br /> <b>Warning</b>: main(./admin/robot_functions.php): failed to open stream: No su ch file or directory in <b>c:\indigoperl\apache\htdocs\dig\admin\spider.php</b> on line <b>106</b><br /> <br /> <b>Warning</b>: main(): Failed opening './admin/robot_functions.php' for inclus ion (include_path='.;..;../..;../../..') in <b>c:\indigoperl\apache\htdocs\dig\a dmin\spider.php</b> on line <b>106</b><br /> <br /> <b>Fatal error</b>: Call to undefined function: phpdigprnmsg() in <b>c:\indigo perl\apache\htdocs\dig\admin\spider.php</b> on line <b>122</b><br /> C:\indigoperl\apache\php> |
Same Error, solved by a workaroung
Hi,
I had the same error (PHP4.3.8, Windows 2003). Here is the solution: If you change the directory to that in what spider.php resides, and then call php full qualified, spider.php finds all its includes. The includes are all relative. If you call spider.php from another location, it tries to find the includes from a default path. Good luck Claus |
All times are GMT -8. The time now is 07:53 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.