Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Link Check not finding RLink (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Link Check not finding RLink
#233
jnasta (User)
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Link Check not finding RLink 4 Months, 2 Weeks ago Karma: 1  
Any ideas on why Link Check would not be finding the RLink that is on this page?
http://www.ecologystudies.com/dir/Book12.htm

If you view the source code, you will see that it is there on one line:

<p class="style2"><a href="http://www.johnnasta.com/">John Nasta</a></p>

Maybe because of the trailing slash in the URL? Thanks for any ideas.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#307
jnasta (User)
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Re:Link Check not finding RLink 4 Months ago Karma: 1  
Here's another one. The link to Old Car Network is there and on one line but linkcheck is not finding it.

http://www.5speedtransmissions.com/links.html
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#311
Dewed (User)
Administrator
Posts: 194
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Link Check not finding RLink 4 Months ago Karma: 6  
This is the chunk of code from the new & improved linkcheck from the downloads. This portion is only executed if the CURL libraries are installed on your server...

Code:

if (preg_match ("|<[aA] (.+?)".$our_site."(.+?)>(.+?)<\/[aA]>|i", $body, $rlinks)) {$rlink="<font color=green>Rlink found</font><br>"; $rlink2 = $rlinks['0'];} else {$rlink="<font color=red>Rlink not found</font><br> <b><a target=_blank href=".$rows[RecipURL].">MANUAL</a></b>"; $bad_link = 1; }
It will also be flagged as possibly bad if noindex or nofollow meta tags are found within the head tag of the page with the following snippet ...
Code:

if (preg_match($noindex_meta, $header)){++$flag; $bad_link = 1;$note.="<font color=red>No Index</font><br>"; } if (preg_match($nofollow_meta, $header)){++$flag; $bad_link = 1;$note.="<font color=red>No Follow</font><br>"; }
Hrm.. I've tested both these regular expressions and they appear to work correctly with or without a trailing slash on the URL... but, clicking the link Book12.htm .. I get a 404, and indeed, a link to you is not there. Possibly they are moving stuff around on their site and your browser is showing you a cached copy ?
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#312
Dewed (User)
Administrator
Posts: 194
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Link Check not finding RLink 4 Months ago Karma: 6  
Replying to myself here

Please ensure..
you have the $oursite variable correctly defined in the /include/config.php file

you have updated the linkcheck routine with the one from the downloads section

that you actually see link not found, and not a noindex / nofollow warning.

I'll continue testing various scenerios here.. but thus far, it appeasr to work correctly
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008