View Single Post
Old 02-10-2004, 07:48 PM   #1
bsw114
Green Mole
 
Join Date: Feb 2004
Posts: 3
Angry 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"];
bsw114 is offline   Reply With Quote