Results 1 to 4 of 4

Thread: recover a text

  1. #1
    Join Date
    Dec 2005
    Posts
    136

    recover a text

    Hello,
    I wanted to know how we can do to recover a text (a piece of text) of a site, and to display on mine, so that when the other site on the text was changed, it also changes my site! From what little I know it works with javascript! Thank you in advance for your answers, hoping to be as clear as possible!
    wus up everybody?

  2. #2
    Join Date
    Dec 2007
    Posts
    1,547

    Re: recover a text

    Before seeking technical solution, look if this is legal and at least ask the owner of the site permission to do so.

    And the best is to put a link to the site in question, as things are clear.

  3. #3
    Join Date
    Dec 2007
    Posts
    1,599

    Re: recover a text

    Are you looking to copy text from one of your own sites to another?

    (If you are copying from somebody elses site you may be in breach of copyright.)

    You can do this by highlighting the text and copying (right click and select 'copy' or 'ctrl'-'c' together) it either directly to another site builder or first to a text editing program and then from there to your other site. ( Please copy it to Notepad or Textedit as programs like Word add formatting to the text and can damage your site)

    I hope this solves your problem. If it doesn't work please let us know.

  4. #4
    Join Date
    Dec 2007
    Posts
    1,736

    Re: recover a text

    Example of myspace:

    <?
    $pageID = 'http://myspace.com/MyBand';

    function getPageContent( $url ){
    return( implode( file( $url ), "" ) );
    }
    function parseContentByTagName( $content ){
    preg_match_all( '/<div id="profile_bandschedule">([\n\r\w\W.]*?)<\/div>/i', $content, $contentArray );

    return( implode( $contentArray[0], "" ) );
    }

    if( $pageID == "" ) print( "You have passed an invalid page, please include the paramater: pageID" ); else{ $pageContent = getPageContent( $pageID ); $pageContent = parseContentByTagName( $pageContent );

    if( $pageContent == "" ) {
    print( "<a href='http://myspace.com/MyBand'>Please Check MySpace for Upcoming Shows</a>" );
    } else {
    $pageContent = str_replace( 'color="#ffffff"', " ", $pageContent );
    print $pageContent;
    }
    }?>

Similar Threads

  1. Replies: 4
    Last Post: 26-03-2014, 12:12 PM
  2. Replies: 4
    Last Post: 10-10-2012, 12:22 PM
  3. Replies: 7
    Last Post: 02-05-2012, 03:36 PM
  4. How to recover lost text from text area in Google Chrome?
    By Corwinn in forum Technology & Internet
    Replies: 5
    Last Post: 10-03-2010, 12:56 PM
  5. How to recover deleted Text messages from Metro PCS
    By Neel21 in forum Portable Devices
    Replies: 2
    Last Post: 03-08-2009, 11:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,859,820.39695 seconds with 17 queries