If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member Beluga's Avatar
    Join Date
    Jan 2011
    Member #
    I'm writing a tutorial for efficient broken link checking and fixing with Xenu Linksleuth. I would like to fetch and print the titles of all the links in the link report. To be specific, I would manually remove all the broken urls from the report, leave the ones that are ok and then review the titles I get to determine any parked domains or such.

    I would like this script to be dynamic, so it only fetches the titles as I scroll down the page (lazy behavior). Also to minimize bandwidth the PHP would stop reading the remote page after the title tag.

    For now, I've only managed to insert something static after every external link on the page:

     $(document).ready(function() {
    I would have to somehow ajax .load after each link this:
    with the correct link being passed.

    My current PHP code might need some improving, too, if you have some suggestions about error handling, bandwidth minimizing etc.:

    PHP Code:
    getTitle($url) {
    $fh fopen($url"r");
    $str stream_get_line($fh1024);  
    $str2 strtolower($str);
    $start strpos($str2"<title>")+7;
    $len   strpos($str2"</title>") - $start;


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 12:13 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: