Hi. The phpdigPrnMsg function is defined in the phpdig_functions.php file. The phpdig_functions.php file is included in the config.php file, and the config.php file is included in the spider.php file.
The include "$relative_script_path/includes/config.php"; line was moved inside the if-else at the top of the spider.php file to allow for the USE_RENICE_COMMAND option in the config.php file.
What do you get when you run the following code?
PHP Code:
<?php
$pwd = dirname("D:\\InetPub\\wwwroot\\home\\phpdig\\admin\\spider.php");
echo $pwd . "\n<br><br>\n";
if (!$pwd || $pwd == '.') {
$relative_script_path = '..';
}
else {
$path_part = explode('/',$pwd);
array_pop($path_part);
if (!ereg('^/',$pwd)) {
array_unshift($path_part,'.');
}
$relative_script_path = implode('/',$path_part);
}
echo $relative_script_path;
?>