Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page

 

...

Live information

There's a Mailinglist put up for everything concerning netcurl. That's also where you can find release information (for now). You can subscribe to the list here.


Warning
titleDEPRECATED
LOOK HERE: Module: NETCURL

 

 

 

 

 

This document is deprecated. Take a look at v6.1 instead.

 This page

This documentation is about to get outdated. Things here is under maintenance only. 





Going further down will give you deprecated documentation. 


Table of Contents

Join the project

...

Code Block
languagebash
titleDependencies
apt-get install php-curl php-xml

 


PHP-cURL simplifier library

...

  • ByNodes
    Extracted in the simplest way, by nodes, meaning every each of the elements are sorted out with information about the elements tagnames and attributes (name and id)
  • ByClosestTag
    Extracts the DOMDocument and sets its closest element identification to each of the array variables, beginning with the tagname→element name → element id.
  • ById
    Extracts the DOMDocument and sets the element identification by its id (getElementById equivalent) 

 


Code Block
languagephp
titleHTML Content Parsing
require_once("tornevall_network.php");
$CURL = new \TorneLIB\Tornevall_cURL();
$CURL->setParseHtml(true);
$output = $CURL->doGet("https://my-test-url.com");
var_dump($output['parsed']['ById']);

...