PHP Classes

File: RCexample.php

Recommend this page to a friend!
  Classes of Eugene Panin  >  Remote Content retriever  >  RCexample.php  >  Download  
File: RCexample.php
Role: ???
Content type: text/plain
Description: Usage example
Class: Remote Content retriever
Author: By
Last change:
Date: 21 years ago
Size: 544 bytes


Class file image Download
 require './SimpleObject.php';
 require './RemoteContent.php';

 // Getting remote page
 $rc = new RemoteContent('');
 $data = $rc->getData();
 if ($rc->getError()) {
        echo "Error while retrieving remote content: ".$rc->getError();
 echo $data."<hr>";

 // Getting local file
 $rc = new RemoteContent('/path/to/your/file');
 $data = $rc->getData();
 if ($rc->getError()) {
        echo "Error while retrieving local file: ".$rc->getError();
 echo $data;

For more information send a message to info at phpclasses dot org.