![]() |
Spidering through a script
Hi -
I'm trying to run the spider in the "background" through a php script, and I have this so far: PHP Code:
Is there a better way to run the spider without having to directly enter in the site to be spidered? Thanks! |
Hi. You can run PhpDig from shell. Just set the following to the wanted search depth in the config file, make a text file with the full URLs, one per line, and use the below command.
PHP Code:
Code:
php -f [PHPDIG_DIR]/admin/spider.php [File containing an urls list] |
This will work well, but is there a way to do it through a PHP script? I basically want "Install.php" to do x, y and z, plus get phpDig to spider a site, all in one execution without any user input. Can't I just feed spider.php the information it needs to spider the site? Thanks for the quick reply.
durr...just remembered I can do it with exec (/usr/bin/php -f spider.php); works well! |
OK - I used this command to spider:
PHP Code:
This worked great until I recently upgraded to a newer version of PHP, and now the command doesn't produce any results. I know there's a way to turn on/off PHP as an executable, but I can't find it in PHP.INI and I'm not sure where to look. Thanks for helping out. |
All times are GMT -8. The time now is 01:42 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.