PHP

The PHP Hypertext Preprocessor (PHP) is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. This tutorial helps you to build your base with PHP.

Six Ways of Retrieving Webpage Content In PHP

Six Ways of Retrieving Webpage Content In PHP

There are so far 6 ways of Getting webpage content (full HTML) in PHP are most commonly used. The methods are using file() fuction using file_get_contents() function using fopen()->fread()->fclose() functions using curl using fsockopen() socket mode using Third party library (Such as “snoopy”) 1. file() <?php $url='http://blog.oscarliang.net'; // using file() function to …

Read More »

How to crawl a website

How to crawl a website

The word “crawling” has become synonymous with any way of getting data from the web programmatically. But true crawling is actually a very specific method of finding URLs, and the term has become somewhat confusing. Before we go into too much detail, let me just say that this post assumes …

Read More »