[function.file-get-contents]函数问题 各位大侠进来下
[i=s] 本帖最后由 coolcm 于 2013-10-29 21:19 编辑 [/i]这几天DX3.1 装了个插件出现问题,插件作者说是 [[color=#810081]function.file-get-contents[/color]]服务器函数问题。
服务器是linux +wdcp [table]
[tr][td]服务器系统及 PHP[/td][td]Linux / PHP v5.2.17p1[/td][/tr]
[tr][td]服务器软件[/td][td]Apache[/td][/tr]
[tr][td]服务器 MySQL 版本[/td][td]5.1.63[/td][/tr]
[/table]php.ini allow_url_fopen 已打开了
测试代码如下:
<?php
$url = "www.baidu.com";
$contents = file_get_contents($url);
//如果出现中文乱码使用下面代码
//$getcontent = iconv("gb2312", "utf-8",$contents);
echo $contents;
?>
错误如下:[b]Warning[/b]: file_get_contents([url=http://www.wdlinux.cn/bbs/www.baidu.com]www.baidu.com[/url]) [[color=#810081]function.file-get-contents[/color]]: failed to open stream: No such file or directory in [b]/www/web/wwwqzkkcn/public_html/1.php[/b] on line [b]3[/b]
各位大侠帮忙看看 增加http:// 谢谢管理员回复。增加http://后测试代码是可以了。但插件还是没法用。正在联系插件作者 谢谢管理员回复。增加http://后测试代码是可以了。但插件还是没法用。正在联系插件作者
页:
[1]