php - file_get_contents on times out when run on same server as target -



php - file_get_contents on times out when run on same server as target -

if set in php file:

echo file_get_contents("http://www.example.com/mypage.php");

if run script on example.com, page times out. if run same script on different server, loads correctly immediately. checked , allow_url_fopen 'on' in phpinfo(). ideas be? in advance.

use this class

for getting things dom url

like

$html = file_get_html("http://example.com"); echo $html;

php

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -