View Full Version : Problem with setting the ABSOLUTE_SCRIPT_PATH

06-29-2005, 01:31 PM
I have installed the program and can run it with the web browser interface. However, when I try to run it from the command line, I get the following error:

Warning: main(../includes/config.php): failed to open stream: No such file or directory in <snip for privacy>/phpdig/admin/spider.php on line 89
... and lots of other, related errors.

I set my config file as follows:

define('ABSOLUTE_SCRIPT_PATH','<snip for pirvacy>/phpdig');

BTW: <snip for privacy> is my absolute path up to the phpdig directory.

I feel like I must be missing something very basic, but I can't figure what it is.

06-29-2005, 02:03 PM
Well, I was wrong about the problem being with the absolute script path variable. When I went in to spider.php and commented out the line:

$relative_script_path = '..';

Then the spidering works from the command line because relative path is retaining its value of absolute path.

What should I be doing here? I can hardly imagine that what I did is OK.

Any thoughts and guidance would be appreciated.

07-18-2005, 05:11 PM