added on May 1, 2009 by
I have configured my linkex to only accept backlinks from URLs that have a max 40 of outgoing external links. However
someone just added a link on a page with 1300+ outgoing links.
Is the backlink "external links" checker broken?
Maybe it has to do with the following Notice that I get when I call the linkchecker from commandline:
Notice: Undefined variable: external in /var/www/[...]/linkex/index.php on line 1571
added on May 11, 2009 by
Hi,
hm it could very well be a bug in the code. What version are you running?
v0id
added on May 11, 2009 by
Version 20090302 (which should be the latest).
I'll try the following:
There's a variable initialized with 0 a few lines above the line with the warning:
$externallinks = 0;
I think this is the variable that should be increased in the loop...
foreach( $links AS $link ) {
$external += ...
}
But there's an $external instead of $externallinks. A few lines below that the code keeps on using $externallinks, so
I'll change the $external in the loop to $externallinks.
I believe that that'll fix the problem.
By the way: You should use $var[bla] instead of $var{bla} as the latter will be deprecated in PHP6.
http://stackoverflow.com/questions/335205/php-string0-vs-string0
Bye,
Dominik Deobald
added on May 14, 2009 by
Hi Dominik,
Thanks alot for pointing it out! I haven't had time to work on the code yet, but it's definitely fixed in next version.
Also thanks alot for the heads up with PHP6, haven't had time to check out the changes comming up for v6. It'll take me
a while to get used to using [] instead of {} since that's what i've been using for years :D
v0id