Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 3 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();