sunra / php-simple-html-dom-parser

PHP Simple HTML DOM Parser adaptation for Composer and PSR-0
1.3k stars 352 forks source link

curl request works only in local environment #69

Closed XTard closed 5 years ago

XTard commented 5 years ago

Hello, I'm using the latest version of the parser <1.8.1> downloaded from the official sourceforge page. When I use the function file_get_html(

) to pull a webpage from a remote host, I'm getting a warning that the request has timed out <at line 136>, though the warning/error occurs only when it's made from a remote host/environment - it works perfectly fine when made from my local server.

Edit: That's the whole code on github - here

Additional edit: You can experience the warning/error in the integrated github environment or at my remote server...

XTard commented 5 years ago

UPDATE: it was an issue with the remote server that got randomly resolved, so nothing to do with the lib. Though, switched to cURL and I'm using str_get_html now.