PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of simone   Abstract HTTP Client   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Abstract HTTP Client
Send HTTP requests for Web site pages
Author: By
Last change:
Date: 12 years ago
Size: 372 bytes
 

Contents

Class file image Download
require_once "httpClient.php";

class GoogleHomePage extends httpClient {
    const GOOGLE_HOME_PAGE = "http://www.google.com/";

    public function __construct() {
        parent::__construct(self::GOOGLE_HOME_PAGE);
        parent::setFollowLocation(true);
        parent::send();
        echo $this->getResponse();
    }
}

$google = new GoogleHomePage();