пример http://www.saaraan.com/assets/extract-url-content-demo/

учебник http://www.saaraan.com/2013/06/extract-url-content-like-facebook-with-php-and-jquery