高分求救,争,超奇怪的问题
本地环境:windowxp+php 4.4.2
<?php
if(function_exists("file_get_contents"))
{
echo "ok";
}
$file = file_get_contents("http://www.baidu.com");
print_r($file);
?>
输出结果 ok + 百度的首页
服务器 window2000服务器+php4.4.2
<?php
if(function_exists("file_get_contents"))
{
echo "ok";
}
$file = file_get_contents("http://www.baidu.com");
print_r($file);
?>
有时输出ok(没有输出百度的首页),
有时直接提示找不到服务器
本地,和 服务器的 allow_url_fopen = On 都是打开的是什么原因呢