PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Alexander Skakunov   Simple CURL Wrapper   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Simple CURL Wrapper
Submit HTTP requests with the CURL extension
Author: By
Last change:
Date: 16 years ago
Size: 558 bytes


Class file image Download
  MyCurl example
  Author: Skakunov Alex (
  Date: 26.11.06
  Description: goes to and parses for header info

include "MyCurl.php"; //class file is required

$mc = new MyCurl(); //create an instance
$mc->getHeaders = false;
$mc->getContent = true;

$contents = $mc->get(""); //get all data from this URL

echo $mc->get_parsed($contents, "<h1>", "</h1>"); //grab header text (it's just an example. This method is useful to get necessary info from