View Single Post
Old 02-05-2004, 08:39 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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;
?>
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote