Hi. Perhaps it's a location issue...
PHP Code:
// turn off magic_quotes_runtime for escaping purposes
@ini_set("magic_quotes_runtime","0");
// turn off magic_quotes_sybase for escaping purposes
@ini_set("magic_quotes_sybase","0");
Those are set in config.php but if you stick them at the top of spider.php does it help?