C O N O S C E N Z A
web data management
Il nostro è un team che si occupa ormai da piu' di un decennio della risoluzione delle problematiche informatiche, in particolare ci piace poter offrire la nostra competenza in ambito telematico, dalla progettazione su misura della vostra infrastruttura web, alla realizzazione del vostro software e dei vostri portali.
simple html dom with proxy - example

Web

simple html dom with proxy - example

06/03/2012
An example to use the 'simple html dom' class passing through a Proxy Server.



//CODE START

include('./parsehtml/simple_html_dom.php');


$myurl = 'http://www. your url to grab .com';


$aContext = array(
'http' => array(
'proxy' => 'tcp://proxy.yournet.it:3128',
'request_fulluri' => true,
),
);
$cxContext = stream_context_create($aContext);


$html = file_get_html($myurl,'',$cxContext);
//END CODE