argc and argv empty when running spider.php from the shell
When trying to index from the shell by passing in a file of URLs the engine bails without indexing. I realized that the $argc and $argv values were empty. Perhaps the implementation depends on some PHP setting such as register_argc_argv=on. Regardless of why this happens, an easy fix is to just assign them from the $_SERVER array and all appears to work fine... Can somebody roll this into the spider.php script?
$argc = $_SERVER["argc"];
$argv = $_SERVER["argv"];
|