PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 01-10-2004, 05:34 PM   #1
manute
Orange Mole
 
manute's Avatar
 
Join Date: Oct 2003
Location: hamburg, germany
Posts: 52
Question finding dead links

hi!

the problem that i got is not actually about phpdig i guess, but perhaps phpdig can help solve it.
i got quite a big site of about 1500 urls. unfortunately there are some dead links in it. first i manually deleted them after using the phpdig-spider, but after the next time of indexing, they were there again.
now that's getting on my nerves and i just can't find out where these dead links come from.
so now i thought phpdig at least has to "know" on which pages are some dead links. does anyone have an idea how to use phpdig to find out where they are?
manute is offline   Reply With Quote
Old 01-11-2004, 03:47 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. I'm not sure if this is what you are looking to do, but you could echo the URL of the page. In robot_functions.php find the following code and try adding the line indicated below.
PHP Code:
if (ereg("HTTP/[0-9.]+ (([0-9])[0-9]{2})"$answer,$regs)) {
    if (
$regs[2] == || $regs[2] == 3) {
      
$code $regs[2];
    }
    elseif (
$regs[1] >= 401 && $regs[1] <= 403) {
          
$status "UNAUTH";
          break;
    }
    else {
        
$status "NOFILE";
        echo 
"<br>No File: " $url "<br>"// add this line
        
break;
    }

__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 01-14-2004, 03:00 PM   #3
manute
Orange Mole
 
manute's Avatar
 
Join Date: Oct 2003
Location: hamburg, germany
Posts: 52
hey charter!

thanks for the code but that doesn't help me. i know the urls that are broken, because i see them in phpdig's admin menu.
anyway, thank you.
manute is offline   Reply With Quote
Reply

Thread Tools

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
Grep command for finding Saga zero length Dave A Troubleshooting 2 02-06-2006 02:00 PM
Using phpdig for finding copyright infringements leto How-to Forum 0 09-22-2005 12:31 AM
Spider not finding anything. nvahalik Troubleshooting 2 01-25-2005 01:41 PM
Database dead or dying Dave A Troubleshooting 1 12-15-2004 10:08 PM


All times are GMT -8. The time now is 08:28 PM.


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