PHP Classes

Actually the example with google doesn't work anymore due to ...

Recommend this page to a friend!

      Remote Form  >  All threads  >  Actually the example with google...  >  (Un) Subscribe thread alerts  
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

  1. Actually the example with google...   Reply   Report abuse  
Picture of zinsou A.A.E.Mo´se zinsou A.A.E.Mo´se - 2017-08-21 15:56:21
Actually 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', 'me@gmail.com');
$form->setAttributeByName('Passwd', 'mypass');
var_dump($form->getParameters());

And it works fine.Very good package.

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