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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -