Net_Curl
[ class tree: Net_Curl ] [ index: Net_Curl ] [ all elements ]

Source for file fetchPage.php

Documentation is available at fetchPage.php

  1. <?php
  2.  
  3.   // php -q fetchPage.php
  4.   //
  5.   // Fetches the URL passed to the constructor and echos it out.
  6.  
  7.   require_once('Net/Curl.php');
  8.  
  9.   $curl new Net_Curl('http://www.example.com');
  10.   $result $curl->execute();
  11.   if (!PEAR::isError($result)) {
  12.       echo $result."\n";
  13.   else {
  14.       echo $result->getMessage()."\n";
  15.   }
  16.   $curl->close();
  17.  
  18. ?>

Documentation generated on Mon, 11 Mar 2019 14:16:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.