PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 06-28-2005, 01:36 PM   #1
robertlyman
Green Mole
 
Join Date: Jun 2005
Posts: 1
No Digging on same server

DataBase status
Hosts : 1 Entries
Pages : 0 EntriesIndex : 0 Entries
Keywords : 0 Entries
Temporary table : 0 Entries

PhpDig v.1.8.7

Happens on a site that is on the same server as PhpDig. I can index sites not on this server and can index this site from a different server.

http://www.metropcs.com
robertlyman is offline   Reply With Quote
Old 07-05-2005, 06:22 PM   #2
vodevil
Green Mole
 
Join Date: Mar 2005
Posts: 11
Replace this


Code:
//=================================================
//Find if an url is same domain than another
function PhpDigCompareDomains($url1,$url2) {
    $url1 = parse_url($url1);
    $url2 = parse_url($url2);
    if ( isset($url1['host']) && isset($url2['host'])
    && eregi('^([a-z0-9_-]+)\.(.+)',$url1['host'],$from_url)
    && eregi('^([a-z0-9_-]+)\.(.+)',$url2['host'],$to_url)
    && $from_url[2] == $to_url[2]) {
       return true;
    }
    else {
       return false;
    }
}
by this


Code:
//=================================================
//Find if an url is same domain than another
function PhpDigCompareDomains($url1,$url2) {
    $url1 = parse_url($url1);
    $url2 = parse_url($url2);
    if ( isset($url1['host']) && isset($url2['host'])
    && eregi('^([a-z0-9_-]+)\.(.+)',$url1['host'],$from_url)
    && eregi('^([a-z0-9_-]+)\.(.+)',$url2['host'],$to_url)
    && $from_url[2] == $to_url[2]) {
       return true;
    }
    else {
       return true;
    }
}
in robot_functions.php if is don't work replace by this



Code:
//=================================================
//Find if an url is same domain than another
function PhpDigCompareDomains($url1,$url2) {
    $url1 = parse_url($url1);
    $url2 = parse_url($url2);
    if ( isset($url1['host']) && isset($url2['host'])
    && eregi('^([a-z0-9_-]+)\.(.+)',$url1['host'],$from_url)
    && eregi('^([a-z0-9_-]+)\.(.+)',$url2['host'],$to_url)
    && $from_url[2] == $to_url[2]) {
       return false;
    }
    else {
       return false;
    }
}
vodevil 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
not digging certain links BulForce Troubleshooting 9 10-11-2004 10:13 AM
Hello, I use a Windows Server ClausBrell The Mole Hole 2 09-30-2004 05:35 AM
limit digging to certain keywords? hgw How-to Forum 1 08-20-2004 06:57 AM
digging subdomains b2l_grefix How-to Forum 6 05-10-2004 03:34 PM
digging probs michabis101 How-to Forum 3 04-10-2004 12:26 PM


All times are GMT -8. The time now is 12:01 AM.


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