PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Script Installation (http://www.phpdig.net/forum/forumdisplay.php?f=37)
-   -   Problem with setting the ABSOLUTE_SCRIPT_PATH (http://www.phpdig.net/forum/showthread.php?t=2058)

wshobe 06-29-2005 12:31 PM

Problem with setting the ABSOLUTE_SCRIPT_PATH
 
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.

wshobe 06-29-2005 01:03 PM

Path problem continued:
 
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.

Charter 07-18-2005 04:11 PM

http://www.phpdig.net/forum/showthread.php?t=2005


All times are GMT -8. The time now is 11:41 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.