|
11-01-2004, 06:18 AM | #1 |
Green Mole
Join Date: Nov 2004
Posts: 1
|
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> Last edited by mrgee; 11-01-2004 at 06:26 AM. |
11-03-2004, 03:20 AM | #2 |
Green Mole
Join Date: Sep 2004
Location: Willich in Germany
Posts: 3
|
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 |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems running command line | remc | Troubleshooting | 2 | 03-15-2005 09:34 AM |
command line and ABSOLUTE_SCRIPT_PATH | drywall | Troubleshooting | 30 | 02-10-2005 10:34 AM |
spider from command line | twanoo | Troubleshooting | 3 | 01-14-2005 11:04 AM |
Command Line entry and nothing happens | aslan | Troubleshooting | 6 | 08-27-2004 04:19 PM |
Indexing by command line... | Canadian | How-to Forum | 4 | 01-04-2004 07:44 PM |