PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Index just one page ?? (http://www.phpdig.net/forum/showthread.php?t=747)

lighthouse 03-30-2004 02:53 AM

Index just one page ??
 
I want to index (spider) just 1 specific page within a website:

eg: http://thedomain.com/news.htm

However - when I add that domain to the admin form, and choose a Search depth of 0 (or anything), it begins to spider from the domain's root level... - ie: it starts at http://thedomain.com

Therefore it doesn't actually spider the page I want.

Please help!!!!!
Thanks
Gary

Charter 03-30-2004 08:13 AM

Hi. Perhaps try the following.

In spider.php find:
PHP Code:

if ($mode != 'small') {
     
$query_tempspider "INSERT INTO ".PHPDIG_DB_PREFIX."tempspider (site_id,file,path) SELECT site_id,file,path FROM ".PHPDIG_DB_PREFIX."spider WHERE site_id=$site_id $andmore_tempspider";
     
mysql_query($query_tempspider,$id_connect);
}
else  {
     
$force_first_reindex 1;


and replace with:
PHP Code:

if ($mode != 'small') {
/*
     $query_tempspider = "INSERT INTO ".PHPDIG_DB_PREFIX."tempspider (site_id,file,path) SELECT site_id,file,path FROM ".PHPDIG_DB_PREFIX."spider WHERE site_id=$site_id $andmore_tempspider";
     mysql_query($query_tempspider,$id_connect);
*/
}
else  {
     
$force_first_reindex 1;


Remember to remove any "word" wrapping in the above code.


All times are GMT -8. The time now is 10:43 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.