View Full Version : locked site and commandlineinterface

02-03-2004, 08:55 AM

i'm wondering

is it true that the working directory must be the phpdig when spidering via cgi?

cd path_to_phpdig/
/usr/local/php/bin/php -f admin/spider.php http://***.***.nl >> spider_log.txt

on OS X the $_SERVER[{'REQUEST_URI'] isn't present when working from the cli, thought uyou should know.

a locked site doesn't give any feedback while updeting with the cli? correct? it just hangs, indefinitely
a die( with some message ) would be nice?

if my search page is here: /search.php
is it true that phpdig MUST be installed at / ?

How would I include phpDig into my own (search) page (form) and a result page.
The '$relative_script_path' seems to suggest I can only include the includes/config.php when it is next to my own search/result pages? is this assumption correct, and wouldn't it be more logical to have the choice of installation path to be anywere I like?

these are my first steps into this phpDig thing, nice product!


02-05-2004, 09:03 AM
Hi. For one, try using the full path to spider.php in the command line from outside the PhpDig directory, editing the config.php file if needed. For two, thanks. For three, add a space and ampersand to the end of the command to run the process in the background (the output is in the spider_log.txt file). For four and the rest, you can modify the $relative_script_path variable to install elsewhere if desired.