| 
| Subject: | Actually the example with google... | 
|---|
 | Summary: | Package rating comment | 
|---|
 | Messages: | 1 | 
|---|
 | Author: | zinsou A.A.E.Moïse | 
|---|
 | Date: | 2017-08-21 15:56:21 | 
|---|
 |  |  |  | 
zinsou A.A.E.Moïse rated this package as follows:
| Utility: | Good | 
|---|
| Consistency: | Sufficient | 
|---|
| Examples: | Good | 
|---|
|  | 
  zinsou A.A.E.Moïse - 2017-08-21 15:56:21Actually the example with google doesn't work anymore due to an ssl certificate error so i use this code : 
include('remoteform.class.php'); 
  $site = file_get_contents('https://login.yahoo.com'); 
// print ($site); 
 $dom = new DOMDocument(); 
  $dom->loadHTML($site); 
  $xpath = new DOMXpath($dom); 
  // var_dump($xpath); 
  $form = new RemoteForm($xpath->query('//form[@id="login-username-form"]')->item(0)); 
  $form->setAttributeByName('Email', '[email protected] '); 
  $form->setAttributeByName('Passwd', 'mypass'); 
  var_dump($form->getParameters());
 
And it works fine.Very good package. |