Sunday , September 22 2019
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 »
Wordpress images fix

WordPress import download images fix

WordPress import download images fix… This morning, I attempted a simple WordPress Export and Import of roughly 100 posts from a client’s old WordPress blog to his new one. I quickly discovered a major error using the official WordPress Import plugin. While all the posts imported just fine, the option “Download ...

Read More »