Jump to content

scripting browser example does not work for me


sdowney1

Recommended Posts

http://www.lastcraft.com/browser_documentation.php

can someone post back an example of where this is working?

<?php

    require_once('simpletest/browser.php');

   

    $browser = &new SimpleBrowser();

    $browser->get('http://php.net/');

    $browser->click('reporting bugs');

    $browser->click('statistics');

    $page = $browser->click('PHP 5 bugs only');

    preg_match('/status=Open.*?by=Any.*?(\d+)<\/a>/', $page, $matches);

    print $matches[1];

?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.