Tuesday, 23 July 2013

Extract URL contentwith PHP and jQuery like Facebook

You may have seen Facebook’s technique that extracts content of remote URL when a user types a URL in the status text-box filed. In this article, we will try to create a similar type of Ajax based URL content extractor using jQuery and PHP.

Extract URL Content

Ok now start with jQuery code, we will extract the first typed URL using regular expression, when user types the URL in the text box , and then we make Ajax request to PHP file, which will extract the content from URL and send content back to index page as JSON format, which we will output in an element using jQuery.
Read More