Autor | Zpráva | ||
---|---|---|---|
JaySee Profil |
Ahoj,
existuje způsob, jak získat html obsah webu, s nímž komunikuji protokolem https? Pro běžné weby používám toto: $dom = new DOMDocument('1.0'); @$dom->loadHTMLFile($url); Máte nápad, jak to udělat snadno? Díky |
||
scheras Profil * |
#2 · Zasláno: 25. 6. 2013, 19:00:07
$c = curl_init(); curl_setopt($c, CURLOPT_URL, $url); // Set so curl_exec returns the result instead of outputting it. curl_setopt($c, CURLOPT_RETURNTRANSFER, true); // Get the response and close the channel. $response = curl_exec($c); curl_close($c); |
||
Časová prodleva: 11 let
|
0