Source for file fetchPage.php
Documentation is available at fetchPage.php
// php -q fetchPage.php http://www.example.com
// Fetches the URL passed to the constructor and echoes it out.
require_once('Net/Curl.php');
$result = $curl->create ();
if (!PEAR ::isError ($result)) {
// Set other options here with Net_Curl::setOption()
$result = $curl->execute ();
if (!PEAR ::isError ($result)) {
echo $result->getMessage (). "\n";
echo $result->getMessage (). "\n";
Documentation generated on Mon, 11 Mar 2019 15:21:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|