Hi. Oops... move the following line to the top of the spider.php file. This should get rid of the "undefined constant" notice.
PHP Code:
include "$relative_script_path/includes/config.php";
Also at the top of the spider.php file, set the following. This should get rid of the "undefined variable" notices.
PHP Code:
$argv = null;
$argc = null;