View Single Post
Old 05-05-2004, 02:03 AM   #1
sigfy
Green Mole
 
Join Date: May 2004
Posts: 8
Indexing only one page using command line syntax

Hi,

In the admin interface we can update the index choosing one page at a time. I would like to do this using command line interface.

I tried this :
PHP Code:
exec("/usr/local/bin/php -f /usr/local/data/www/phpdig-1.8.0/admin/spider.php http://www.mysite.com/myfolder/mypage.php > /usr/local/data/www/indexing.log &"); 
but then PHPDig indexes all the website.

It's for a news application, I want PHPDig to index this page and only this one automatically and in background mode each time the user adds a news.

I can't use cron job to do this.

Is there a way ?

Thanks for your help.
sigfy is offline   Reply With Quote