你们中的任何人都知道如何制作一个爬虫,它在每个页面中都会查找某个脚本吗?你有什么建议吗... 我想看看它是否可以识别这个脚本:
$app = vB5_Frontend_Application::init('config.php');
error_reporting(E_ALL | E_STRICT);
$config = vB5_Config::instance();
if (!$config->report_all_php_errors) {
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT));
}
$routing = $app->getRouter();
$method = $routing->getAction();
$template = $routing->getTemplate();
$class = $routing->getControllerClass();
if (!class_exists($class))
{
die("Couldn't find controller file for $class");
}
vB5_Frontend_ExplainQueries::initialize();
$c = new $class($template);
call_user_func_array(array(&$c, $method), $routing->getArguments());
vB5_Frontend_ExplainQueries::finish();