PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of P Guardiario   PGBrowser   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PGBrowser
Access remote site pages submitting forms
Author: By
Last change:
Date: 11 years ago
Size: 199 bytes
 

Contents

Class file image Download
<?php
require 'pgbrowser.php';

$b = new PGBrowser();
$page = $b->get('http://www.google.com/');
$form = $page->form();
$form->set('q', 'foo');
$page = $form->submit();
echo
$page->title;
?>