PDA

View Full Version : command line using winxp


mrgee
11-01-2004, 05:18 AM
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>

ClausBrell
11-03-2004, 02:20 AM
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