В описании file_get_contents
Цитата |
http://www.php.su/functions/?file-get-contents |
if(preg_match('/^http:\/\/+/', $href)){
if(($allheaders = get_headers($href)) && is_array($allheaders) && preg_match('/200+/', $allheaders[0])){
if($content = file_get_contents($href)){
Цитата |
Warning: get_headers() [function.get-headers]: php_network_getaddresses: getaddrinfo failed: |
Цитата |
http://phpforum.ru/index.php?showtopic=0&view=findpost&p=1459647 |
Цитата |
Для этой функции вы можете использовать URL в качестве имени файла, если была включена опция fopen wrappers. |
Цитата |
; Whether to allow the treatment of URLs (like http:// or ftp://) as files. allow_url_fopen = On |
Цитата (kovaldm @ 16.10.2011 - 19:54) |
Может, курлом? |