<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Index only new sites</title>
        <description> When adding new sites it could be helpful not to reindex the whole database but only these new sites. So here is an example how to implement this goody: 


In admin/admin.php search for:
&amp;lt;li&amp;gt;&amp;lt;a href='spider.php?all=1'&amp;gt;Reindex all&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/li&amp;gt;

Above that row include as new row:
&amp;lt;li&amp;gt;&amp;lt;a href='spider.php?all=2'&amp;gt;Index only the new&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/li&amp;gt;
				


In admin/spider.php search for: 

	if ($all ==  1) {
		index_all();
	} 

behind that row include:

 	if ($all ==  2) {
		index_new();
	} 
   


At the end of the same file include:

    function index_new() {
        global $mysql_table_prefix;
        print &amp;quot;&amp;lt;b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;center&amp;gt;Now indexing all new URL's&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;\n&amp;quot;;
            
        $result=mysql_query(&amp;quot;select url, indexdate, spider_depth, required, disallowed, can_leave_domain from &amp;quot;.$mysql_table_prefix.&amp;quot;sites&amp;quot;);            
        echo mysql_error();
        while ($row=mysql_fetch_row($result)) {
            $url = $row[0];
            $indexdate = $row[1];
            $depth = $row[2];
            $include = $row[3];
            $not_include = $row[4];
            $can_leave_domain = $row[5];
            if ($can_leave_domain=='') {
                $can_leave_domain=0;
            }
            if ($depth == -1) {
                $soption = 'full';
            } else {
                $soption = 'level';
            }
                
            if ($indexdate == '') {
            print &amp;quot;&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;Indexing $url&amp;lt;br&amp;gt;&amp;quot;;
            index_site($url, 1, $depth, $soption, $include, $not_include, $can_leave_domain);
            }
        }			                       
        print &amp;quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;center&amp;gt;&amp;lt;b&amp;gt;Indexing finished !&amp;lt;/b&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;br&amp;gt;&amp;quot;;		   
        
    }


Ready. In admin section &amp;quot;Sites&amp;quot; now you will find a new item called &amp;quot; Index only the new&amp;quot;. Use this to do an index after you added new sites.

Tec</description>
        <link>http://www.sphider.eu/forum/read.php?3,777,777#msg-777</link>
        <lastBuildDate>Thu, 20 Jun 2013 03:46:21 +0300</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,6615#msg-6615</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,6615#msg-6615</link>
            <description><![CDATA[ So you're saying the code should look like this:<br />
<br />
function index_old() { <br />
$today = echo date(&quot;Y-m-d&quot;);<br />
global $mysql_table_prefix; <br />
print &quot;&lt;b&gt;&lt;br&gt;&lt;center&gt;Now indexing all URL's over a week old&lt;/center&gt;&lt;/b&gt;&lt;br&gt;\n&quot;; <br />
<br />
$result=mysql_query(&quot;select url, indexdate, spider_depth, required, disallowed, can_leave_domain from &quot;.$mysql_table_prefix.&quot;sites&quot;); <br />
echo mysql_error(); <br />
while ($row=mysql_fetch_row($result)) { <br />
$url = $row[0]; <br />
$indexdate = $row[1]; <br />
$depth = $row[2]; <br />
$include = $row[3]; <br />
$not_include = $row[4]; <br />
$can_leave_domain = $row[5]; <br />
if ($can_leave_domain=='') { <br />
$can_leave_domain=0; <br />
} <br />
if ($depth == -1) { <br />
$soption = 'full'; <br />
} else { <br />
$soption = 'level'; <br />
} <br />
<br />
if ($today - $indexdate &gt; 7) { <br />
print &quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;Indexing $url&lt;br&gt;&quot;; <br />
index_site($url, 1, $depth, $soption, $include, $not_include, $can_leave_domain); <br />
} <br />
}	<br />
print &quot;&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;b&gt;Indexing finished !&lt;/b&gt;&lt;/center&gt;&lt;br&gt;&quot;;	<br />
<br />
} <br />
<br />
If so, it's still not working for me, and instead I'm getting the following error:<br />
Parse error: syntax error, unexpected T_ECHO in /admin/spider.php on line 667<br />
<br />
I'm still not sure what I'm missing.]]></description>
            <dc:creator>scd1982</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 29 Sep 2009 21:36:41 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,6608#msg-6608</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,6608#msg-6608</link>
            <description><![CDATA[ $today variable is not declared.<br />
<br />
On top of script, declare $today as echo date(&quot;d/m/Y&quot;);<br />
<br />
...<br />
<br />
$today = echo date(&quot;m/d/y&quot;);]]></description>
            <dc:creator>celsojr100</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 29 Sep 2009 01:38:58 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,6603#msg-6603</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,6603#msg-6603</link>
            <description><![CDATA[ celsojr100 Wrote:<br />
-------------------------------------------------------<br />
&gt; Thank you, scd1982.<br />
&gt; <br />
&gt; :D<br />
<br />
<br />
Did the code I posted work for you?<br />
<br />
It doesn't seem to be working for me, but I think there's an error in the way it determines if the site should be re-indexed, as it starts to run (i.e. displays the text &quot;Now indexing all URL's over a week old&quot;, then immediately displays &quot;Indexing finished !&quot;.  I have plenty of sites over a week old for it to run, but it doesn't seem to work correctly.<br />
<br />
The only thing I can think of is that it's trying to find new sites that haven't been indexed yet, and that are over a week old, as opposed to re-indexing sites that have already been indexed.  If so, I don't know how to change this behavior.  Anyone who might be able to provide some help would be appreciated.]]></description>
            <dc:creator>scd1982</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Mon, 28 Sep 2009 14:23:17 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,6601#msg-6601</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,6601#msg-6601</link>
            <description><![CDATA[ Thank you, scd1982.<br />
<br />
:D]]></description>
            <dc:creator>celsojr100</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sun, 27 Sep 2009 23:06:58 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,6593#msg-6593</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,6593#msg-6593</link>
            <description><![CDATA[ I'm trying to add onto this, by creating a &quot;Reindex if older than x days&quot;.<br />
<br />
To do this, I followed the steps above with some modifications as follows:<br />
<br />
In admin/admin.php, I included:<br />
&lt;li&gt;&lt;a href='spider.php?all=3'&gt;Reindex old&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;<br />
<br />
In admin/spider.php, I changed:<br />
<br />
if ($all ==  1) {<br />
		index_all();<br />
	        } else {<br />
<br />
To:<br />
if ($all ==  1) {<br />
		index_all();<br />
	} <br />
        if ($all == 2) { <br />
                index_new(); <br />
        }<br />
	if ($all == 3) { <br />
		index_old();<br />
        } else {<br />
<br />
And in the same file, at the bottom, I included:<br />
function index_old() { <br />
global $mysql_table_prefix; <br />
print &quot;&lt;b&gt;&lt;br&gt;&lt;center&gt;Now indexing all URL's over a week old&lt;/center&gt;&lt;/b&gt;&lt;br&gt;\n&quot;; <br />
<br />
$result=mysql_query(&quot;select url, indexdate, spider_depth, required, disallowed, can_leave_domain from &quot;.$mysql_table_prefix.&quot;sites&quot;); <br />
echo mysql_error(); <br />
while ($row=mysql_fetch_row($result)) { <br />
$url = $row[0]; <br />
$indexdate = $row[1]; <br />
$depth = $row[2]; <br />
$include = $row[3]; <br />
$not_include = $row[4]; <br />
$can_leave_domain = $row[5]; <br />
$today = date(&quot;Y-m-d&quot;);<br />
if ($can_leave_domain=='') { <br />
$can_leave_domain=0; <br />
} <br />
if ($depth == -1) { <br />
$soption = 'full'; <br />
} else { <br />
$soption = 'level'; <br />
} <br />
<br />
if ($today - $indexdate &gt; '7') { <br />
print &quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;Indexing $url&lt;br&gt;&quot;; <br />
index_site($url, 1, $depth, $soption, $include, $not_include, $can_leave_domain); <br />
} <br />
}	<br />
print &quot;&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;b&gt;Indexing finished !&lt;/b&gt;&lt;/center&gt;&lt;br&gt;&quot;;	<br />
<br />
} <br />
<br />
My intention was to have it index any url's greater than 7 days old (i.e. if ($today - $indexdate &gt; '7')), however it doesn't index anything.  <br />
<br />
I think it's probably just a small error in the code, but if someone can give any insight that would be great!<br />
<br />
Thanks!]]></description>
            <dc:creator>scd1982</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 25 Sep 2009 14:12:23 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,2372#msg-2372</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,2372#msg-2372</link>
            <description><![CDATA[ This mod will not reindex anything. It will just index (for the first time) all the sites marked as &quot;Not indexed&quot; in Sphiders admin Sites interface.<br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 01 Nov 2007 14:56:25 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,2368#msg-2368</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,2368#msg-2368</link>
            <description><![CDATA[ Does this Reindex All Sites, but only gets information from the new pages, that are not in the database??<br />
<br />
Thanks]]></description>
            <dc:creator>fastest963</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 01 Nov 2007 12:12:26 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,1863#msg-1863</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,1863#msg-1863</link>
            <description><![CDATA[ This is a master piece that, as other from Tec, should be distributed along Sphider. It seems to me that Tec's contributions aren't enough related in the presentations of each version of Sphider. I am not saying nothing about Ando's ethics. I am just inviting him to be more generous with his main  participants (I just try to bring some dynamics).]]></description>
            <dc:creator>rec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 19 Sep 2007 21:44:47 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,1118#msg-1118</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,1118#msg-1118</link>
            <description><![CDATA[ thank you  recortes, but I was referring to using Tec's modifcation to do this, when I try what you suggested tec from the admin folder, i get this. I am using a linux Freebsd system with mysql and php5. i can continue to use lynx from the shell, but i was hoping for a better way, thanks for your responses.<br />
<br />
<br />
# php spider.php?all=2<br />
Could not open input file: spider.php?all=2<br />
<br />
#this works<br />
# php spider.php -all<br />
php spider.php -all<br />
Spidering [<a href="https://jdk.dev.java.net/CTV/index.html" rel="nofollow" >jdk.dev.java.net</a>]<br />
1. Retrieving: [<a href="https://jdk.dev.java.net/CTV/index.html" rel="nofollow" >jdk.dev.java.net</a>] at 08:29:08.<br />
<br />
The problem is if the spider is interrupted for any reason, I have to start over reindexing all and with 30,000 sites to spider, this takes some time.]]></description>
            <dc:creator>mike171562</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 26 Jul 2007 16:37:14 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,1111#msg-1111</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,1111#msg-1111</link>
            <description><![CDATA[ In Control Panel/System, people can create a path for php/Shpider, so that you can also operate from the command line, with the rules listed in install.txt. To do index only the new sites, it is necessary to give a few aditional details to Tec's excel script about this matter. That would also mean a more complete Sphider, if Ando accepts it.<br />
<br />
&quot;...4. Using the indexer from commandline<br />
<br />
It is possible to spider webpages from the command line, using the syntax:<br />
<br />
php spider.php &lt;options&gt;<br />
<br />
   where &lt;options&gt; are<br />
<br />
-all 		Reindex everything in the database<br />
-u &lt;url&gt; 		Set the url to index<br />
-f 		Set indexing depth to full (unlimited depth)<br />
-d &lt;num&gt; 		Set indexing depth to &lt;num&gt;<br />
-l 		Allow spider to leave the initial domain<br />
-r 		Set spider to reindex a site<br />
-m &lt;string&gt;		Set the string(s) that an url must include (use \n as a delimiter between multiple strings)<br />
-n &lt;string&gt;		Set the string(s) that an url must not include (use \n as a delimiter between multiple strings)<br />
<br />
<br />
For example, for spidering and indexing [<a href="http://www.domain.com/test.html" rel="nofollow" >www.domain.com</a>] to depth 2, use<br />
php spider.php -u [<a href="http://www.domain.com/test.html" rel="nofollow" >www.domain.com</a>] -d 2<br />
<br />
If you want to reindex the same url, use<br />
php spider.php -u [<a href="http://www.domain.com/test.html" rel="nofollow" >www.domain.com</a>] -r...&quot;]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 26 Jul 2007 02:45:51 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,1106#msg-1106</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,1106#msg-1106</link>
            <description><![CDATA[ mike171562:<br />
<br />
For 3 days I imploringly hoped someone else would answer. Because I have no problem to use .../admin/spider.php?all=2 in order to index only the new sites on a Windows XP/SP2 system with XAMP server.<br />
<br />
Sorry for your trouble. Still hoping for anyone else who could follow your issue.<br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 25 Jul 2007 23:43:35 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,1073#msg-1073</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,1073#msg-1073</link>
            <description><![CDATA[ would it be possible to do this from the command line, I tried php spider.php -all 2, but it doesnt work]]></description>
            <dc:creator>mike171562</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sun, 22 Jul 2007 07:09:20 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,788#msg-788</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,788#msg-788</link>
            <description><![CDATA[ &quot;Lapsus Calamis&quot; that you can confirm in the original Tec's Contribution, I should have writen in my latest post:<br />
<br />
Example (admin.php) <br />
<br />
&lt;li&gt;&lt;a href='spider.php?all=1'&gt;Reindex all&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt; <br />
&lt;li&gt;&lt;a href='spider.php?all=2'&gt;Index only the new&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt; <br />
<br />
<br />
I also remember that I tried sucessfully Tec's goodie.]]></description>
            <dc:creator>rec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 26 Jun 2007 15:53:30 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,785#msg-785</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,785#msg-785</link>
            <description><![CDATA[ Have a look at your last posting:<br />
<br />
-----------------------&gt;&gt;&gt;&gt;<br />
Example (admin.php) <br />
<br />
if ($all == 1) { <br />
index_all(); <br />
} <br />
if ($all == 2) { <br />
index_new(); <br />
} <br />
<br />
<br />
Example (spider.php) <br />
<br />
if ($all == 1) { <br />
index_all(); <br />
} <br />
if ($all == 2) { <br />
index_new(); <br />
}<br />
<br />
&lt;&lt;&lt;&lt;&lt;&lt;-------------<br />
<br />
You really believe this is helpful to new bees? <br />
Perhaps you were in hurry, but<br />
<br />
if ($all == 1) { <br />
index_all(); <br />
} <br />
if ($all == 2) { <br />
index_new(); <br />
}<br />
<br />
is not (and should not become) part of admin.php<br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 26 Jun 2007 09:43:22 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,783#msg-783</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,783#msg-783</link>
            <description><![CDATA[ Tec<br />
<br />
I just wrote to some who could need my explanation.<br />
<br />
I believe that we all thank your latest writing. Please Keep giving your technical advice (linguistics is ALSO a part of it).<br />
<br />
In which concerns some readers who are in a hurry to put the script working, even when they just know a bit of english, I expect that I have been usefull to some readers (like I wrote).]]></description>
            <dc:creator>rec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 26 Jun 2007 01:50:18 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,782#msg-782</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,782#msg-782</link>
            <description><![CDATA[ Sorry, but I really meant above and behind<br />
<br />
The Sage's English Dictionary and Thesaurus:<br />
<br />
ABOVE <br />
	&gt; Synonym: ahead, earlier, in front.<br />
	&gt; Antonym: behind, after.<br />
	- I had known her before.<br />
	- As I said before.<br />
	- He called me the day before but your call had come even earlier.<br />
	- With the cross of Jesus marching on before.<br />
	- That actor was famous before I was born.<br />
	- Be up and ready to go before sunrise if you are serious about bird watching.<br />
	- I place honesty before all else.<br />
	- It is ten minutes before three. It is time to go.<br />
	- I was finally before the man but could not articulate a word.<br />
<br />
	Adverb<br />
		&gt; Synonym: ahead, earlier, in front.<br />
		- I had known her before.<br />
		- As I said before.<br />
		- He called me the day before but your call had come even earlier.<br />
		- Her parents had died four years earlier.<br />
		- I mentioned that problem earlier.<br />
		- I see the lights of a town ahead.<br />
		- The road ahead is foggy.<br />
		- Staring straight ahead.<br />
		- We couldn't see over the heads of the people in front.<br />
		- With the cross of Jesus marching on before.<br />
<br />
		Earlier in time; previously.<br />
			&gt; Synonym: earlier.<br />
			- I had known her before.<br />
			- As I said before.<br />
			- He called me the day before but your call had come even earlier.<br />
			- Her parents had died four years earlier.<br />
			- I mentioned that problem earlier.<br />
<br />
		At or in the front.<br />
			&gt; Synonym: ahead, in front.<br />
			- I see the lights of a town ahead.<br />
			- The road ahead is foggy.<br />
			- Staring straight ahead.<br />
			- We couldn't see over the heads of the people in front.<br />
			- With the cross of Jesus marching on before.<br />
<br />
	Conjunction<br />
		&gt; Antonym: after.<br />
		- That actor was famous before I was born.<br />
<br />
		Subordinates one sentence to another and emphasizes the antecedent event in time.<br />
			&gt; Antonym: after.<br />
			- That actor was famous before I was born.<br />
<br />
	Preposition<br />
		&gt; Antonym: after.<br />
		- Be up and ready to go before sunrise if you are serious about bird watching.<br />
		- I place honesty before all else.<br />
		- It is ten minutes before three. It is time to go.<br />
		- I was finally before the man but could not articulate a word.<br />
<br />
		Preceding in time or space.<br />
			&gt; Antonym: after.<br />
			- Be up and ready to go before sunrise if you are serious about bird watching.<br />
<br />
		Previous in position, order, rank, or importance.<br />
			&gt; Antonym: after.<br />
			- I place honesty before all else.<br />
<br />
		When telling time, ahead of the hour.<br />
			&gt; Antonym: after.<br />
			- It is ten minutes before three. It is time to go.<br />
<br />
		In the presence of.<br />
			- I was finally before the man but could not articulate a word.<br />
<br />
<br />
___________________________________________________________<br />
<br />
<br />
BEHIND <br />
	&gt; Antonym: above.<br />
	&gt; Synonym: at a lower place, beneath, down the stairs, downstairs, infra, on a lower floor, to a lower place, under.<br />
	- See below.<br />
	- My bunk is below hers.<br />
	- Wear two coats, it is below freezing.<br />
	- It is below me to clean toilets.<br />
<br />
	Adverb<br />
		&gt; Antonym: above.<br />
		&gt; Synonym: at a lower place, beneath, down the stairs, downstairs, infra, on a lower floor, to a lower place, under.<br />
		- See below.<br />
		- The tenants live downstairs.<br />
		- Vide infra.<br />
		- See under for further discussion.<br />
<br />
		At a later place.<br />
			&gt; Antonym: above.<br />
			- See below.<br />
<br />
		In or to a place that is lower.<br />
			&gt; Antonym: above.<br />
			&gt; Synonym: at a lower place, beneath, to a lower place.<br />
<br />
		On a floor below.<br />
			&gt; Synonym: down the stairs, downstairs, on a lower floor.<br />
			- The tenants live downstairs.<br />
<br />
		(in writing) See below.<br />
			&gt; Synonym: infra.<br />
			- Vide infra.<br />
<br />
		Further down.<br />
			&gt; Synonym: under.<br />
			- See under for further discussion.<br />
<br />
	Preposition<br />
		&gt; Antonym: above.<br />
		&gt; Synonym: beneath.<br />
		- My bunk is below hers.<br />
		- Wear two coats, it is below freezing.<br />
		- The cat often hides beneath the stairs.<br />
		- She feels like a princess and thinks we are all beneath her.<br />
		- It is below me to clean toilets.<br />
<br />
		Lower than, beneath, under.<br />
			&gt; Antonym: above.<br />
			- My bunk is below hers.<br />
<br />
		Smaller quantity, inferior quality, or lesser degree.<br />
			&gt; Synonym: beneath.<br />
			&gt; Antonym: above.<br />
			- Wear two coats, it is below freezing.<br />
			- The cat often hides beneath the stairs.<br />
<br />
		Unworthy of consideration.<br />
			&gt; Synonym: beneath.<br />
			- She feels like a princess and thinks we are all beneath her.<br />
			- It is below me to clean toilets.<br />
<br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 26 Jun 2007 01:25:59 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,779#msg-779</guid>
            <title>Re: Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,779#msg-779</link>
            <description><![CDATA[ Tec<br />
<br />
Welcome back; I hope that Ando keeps his word<br />
[<a href="http://www.sphider.eu/forum/read.php?2,644" rel="nofollow" >www.sphider.eu</a>]<br />
<br />
I have used sucessfully the above solution to index without reindex <br />
<br />
and suggest some readers to consider<br />
<br />
&quot;above&quot; and &quot;behind&quot; as &quot;after&quot;=&quot;below&quot;=&quot;down&quot;, say<br />
<br />
<br />
Example (admin.php)<br />
<br />
if ($all == 1) { <br />
index_all(); <br />
} <br />
if ($all == 2) { <br />
index_new(); <br />
} <br />
<br />
<br />
Example (spider.php)<br />
<br />
if ($all == 1) { <br />
index_all(); <br />
} <br />
if ($all == 2) { <br />
index_new(); <br />
}]]></description>
            <dc:creator>rec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Mon, 25 Jun 2007 23:12:02 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,777,777#msg-777</guid>
            <title>Index only new sites</title>
            <link>http://www.sphider.eu/forum/read.php?3,777,777#msg-777</link>
            <description><![CDATA[ When adding new sites it could be helpful not to reindex the whole database but only these new sites. So here is an example how to implement this goody: <br />
<br />
<br />
In admin/admin.php search for:<br />
&lt;li&gt;&lt;a href='spider.php?all=1'&gt;Reindex all&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;<br />
<br />
Above that row include as new row:<br />
&lt;li&gt;&lt;a href='spider.php?all=2'&gt;Index only the new&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;<br />
				<br />
<br />
<br />
In admin/spider.php search for: <br />
<br />
	if ($all ==  1) {<br />
		index_all();<br />
	} <br />
<br />
behind that row include:<br />
<br />
 	if ($all ==  2) {<br />
		index_new();<br />
	} <br />
   <br />
<br />
<br />
At the end of the same file include:<br />
<br />
    function index_new() {<br />
        global $mysql_table_prefix;<br />
        print &quot;&lt;b&gt;&lt;br&gt;&lt;center&gt;Now indexing all new URL's&lt;/center&gt;&lt;/b&gt;&lt;br&gt;\n&quot;;<br />
            <br />
        $result=mysql_query(&quot;select url, indexdate, spider_depth, required, disallowed, can_leave_domain from &quot;.$mysql_table_prefix.&quot;sites&quot;);            <br />
        echo mysql_error();<br />
        while ($row=mysql_fetch_row($result)) {<br />
            $url = $row[0];<br />
            $indexdate = $row[1];<br />
            $depth = $row[2];<br />
            $include = $row[3];<br />
            $not_include = $row[4];<br />
            $can_leave_domain = $row[5];<br />
            if ($can_leave_domain=='') {<br />
                $can_leave_domain=0;<br />
            }<br />
            if ($depth == -1) {<br />
                $soption = 'full';<br />
            } else {<br />
                $soption = 'level';<br />
            }<br />
                <br />
            if ($indexdate == '') {<br />
            print &quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;Indexing $url&lt;br&gt;&quot;;<br />
            index_site($url, 1, $depth, $soption, $include, $not_include, $can_leave_domain);<br />
            }<br />
        }			                       <br />
        print &quot;&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;b&gt;Indexing finished !&lt;/b&gt;&lt;/center&gt;&lt;br&gt;&quot;;		   <br />
        <br />
    }<br />
<br />
<br />
Ready. In admin section &quot;Sites&quot; now you will find a new item called &quot; Index only the new&quot;. Use this to do an index after you added new sites.<br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Mon, 25 Jun 2007 20:07:16 +0300</pubDate>
        </item>
    </channel>
</rss>
