Hi, I am using the "Link Harvester" Free tool from SEOBook.com (tools.seobook.com/link-harvester/#source). But i am getting the fallowing error at least 50x before the results show. Anyone have any clue how to fix it. My hosts PHP Version is 4.4.4 any help with greatly appreciated. Thank You! Best Regards, ITDevil
open up backlinks.php and paste line 300 - 320 on here, and give us a link to the page that creates the error.....
Thank You for your reply. Here the code from 300 - 320 $gamy->search_yahoo(); $totalresults = $gamy->totals['msn']; $totalresults += $gamy->totals['yahoo']; } else { $gamy->search_msn(); $totalresults = $gamy->totals['msn']; } foreach($gamy->search_results AS $value) { $parsed = parse_url('http://' . $value['url']); $host = $parsed['host']; if ((substr($host,-4,4) == '.edu') || (substr($host,-7,4) == '.edu') || (substr($host,-6,6) == '.ac.uk')) { $edu[$host]['links']++; if ($edu[$host]['page'] == '') $edu[$host]['page'] = $value; if ($edu[$host]['ip'] == '') $edu[$host]['ip'] = gethostbyname($host); $cblock = substr($edu[$host]['ip'],0,strrpos($edu[$host]['ip'],'.')); $edu_cblocks[$cblock]++; } else if ((substr($host,-4,4) == '.gov') || (substr($host,-7,4) == '.gov') || (substr($host,-4,4) == '.mil') || (substr($host,-7,4) == '.mil')) { $gov[$host]['links']++; if ($gov[$host]['page'] == '') $gov[$host]['page'] = $value; Code (markup): Thank You!
well, without more information, it's going to be difficult to guess. but probably because your url is empty??? from the message given, your url value is "http://" ???
The full source code of backlink.php is available at http://tools.seobook.com/link-harvester/backlinks3.txt and full script is available at http://tools.seobook.com/link-harvester/#source
find start : 309 foreach($gamy->search_results AS $value) { $parsed = parse_url('http://' . $value['url']); $host = $parsed['host']; Code (markup): replace start : 309 foreach($gamy->search_results AS $value) { echo "<pre>"; print_r($gamy->search_results); echo </pre>; exit; $parsed = parse_url('http://' . $value['url']); $host = $parsed['host']; Code (markup): and give me a link to the script, my server doesn't have domxml and so won't run it....
The script is fixed now, Many Thanks to krakjoe for helping me out. And the fix is Change the line 309 $parsed = parse_url('http://' . $value['url']); Code (markup): to $parsed = @parse_url('http://' . $value['url']); Code (markup):
Reason : Not all $value 's have ['url'] set, the author of the script probably dev'd on a machine that supressed errors by default.....