Thursday , May 25 2017
Home / PHP

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.

Drupal and Varnish a short introduction

Varnish is a HTTP accelerator (or reverse proxy). Its very much capable of processing 100,000 requests in a sec. Most likely quicker then Drupal, even with page caching on. Want to see how it works?   Cache hit User requests a URL Varnish checks it’s cache Varnish retrieves the data ...

Read More »

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 »