PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Requests

Reply
 
Thread Tools
Old 10-29-2006, 12:15 PM   #1
Dan
Green Mole
 
Join Date: Oct 2006
Posts: 1
Question List how many Sites have been indexed?

Hi,

How can you show on your homepage how many sites are currently indexed by the search engine?

-Dan
Dan is offline   Reply With Quote
Old 11-17-2006, 07:00 AM   #2
CentaurAtlas
Green Mole
 
Join Date: Nov 2006
Location: Florida
Posts: 11
You should be able to do a mysql command to count the number of entries in the sites table to show the sites indexed.

Something like this command from the mysql command prompt would show the number of sites:
SELECT count(*) as num FROM phpdig_sites;

(assuming your table is phpdig_sites, it could be just sites or something else).

So you could do something like this (haven't tested, but hopefully the idea is clear):
<?php
$num_sites = mysql_query("SELECT count(*) as num FROM phpdig_sites;");
echo "Number of sites indexed: ";
echo $num_sites;
echo "\n";
?>

[Sorry for any typos, in a rush! ;-) ]

Last edited by CentaurAtlas; 11-17-2006 at 07:03 AM.
CentaurAtlas is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Certain sites, pages and pdfs are not indexed 1.8.9 RC1 [Workaround included] obottek Bug Tracker 0 08-24-2006 06:30 AM
show sites indexed richwilson How-to Forum 2 04-06-2006 05:31 PM
List and link to indexed URIs Charter Mod Submissions 3 01-20-2005 10:07 PM
Many sites indexed - how to restrict search results to just one or two ? ciaran@clissman How-to Forum 2 05-27-2004 02:11 AM
Nothing indexed on some sites tryangle How-to Forum 3 05-02-2004 01:31 PM


All times are GMT -8. The time now is 05:58 PM.


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