腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
4
回答
为什么
file_get_contents
不能
工作
?
、
、
为什么
file_get_contents
注释为我
工作
?在下面的测试文件代码中,似乎我搜索过的每个示例都列出了这个函数,但它从未执行过。这是虚拟主机服务的问题吗?'';print ''.
file_get_contents
($url).'';echo $jsonData; ?>
浏览 85
提问于2011-07-17
得票数 11
4
回答
file_get_contents
对某些url不起作用
、
、
我在PHP中使用
file_get_contents
。在下面的代码中,第一个URL可以正常
工作
,但第二个URL
不能
工作
。$URL = "http://test6473.blogspot.com";print_r($domain); $add_domain =
fi
浏览 0
提问于2013-06-28
得票数 8
回答已采纳
2
回答
谷歌地理编码API只适用于一个单词地址。
、
、
、
Google地理编码api非常有效,如果我只使用一个词,比如 尽管当我粘贴这个url时,它在我的浏览器中
工作
,但是当我使用这个函数
file_get_contents
时,它就不
工作
了。我的问题很简单,
为什么
当我粘贴这个结果时,它在我的浏览器中
工作
,
为什么
它
不能
在下面的
浏览 2
提问于2014-08-21
得票数 1
回答已采纳
4
回答
为什么
file_get_contents
不在PHP中
工作
?
此代码获取内容文件txt:$con=
file_get_contents
( $str);文件存在于文件夹中:结果:显示错误:
为什么
file_get_contents
()
不能
工作
?
浏览 0
提问于2016-01-20
得票数 3
2
回答
将
file_get_contents
与基本身份验证和SSL一起使用
、
我正在尝试一个使用SSL的GET请求和使用
file_get_contents
函数的基本身份验证:$password = "XXXXXXXXXX";http" => array("header" => "Authorization: Basic " . base64_encode("$username:$password")))); $data =
file_get_contents
(
浏览 48
提问于2018-06-01
得票数 0
回答已采纳
1
回答
PHP仅在文档启动时使用会话创建备份
、
、
$fBackup= "backup"; $listFile =
file_get_contents
浏览 0
提问于2015-12-04
得票数 0
2
回答
gnupg get_key在php中失败
、
、
突然间,我发现了一个错误: $publicKey =
file_get_contents
浏览 0
提问于2015-10-04
得票数 3
3
回答
浏览器加载页面,但CURL/file_get_content重定向
、
、
、
我使用这个页面来获取当前的货币转换:当我在浏览器中加载页面时,url不会重定向或类似的东西。 谢谢
浏览 0
提问于2018-03-14
得票数 0
1
回答
file_get_contents
()
不能
正常
工作
、
、
、
知道
为什么
file_get_contents
()
不能
在服务器A上正常
工作
,而在某些网站的服务器B上
工作
吗?$f =
file_get_contents
("https://developer-api.nest.com/devices.json?.");( a) allow_url_fopen已开启 b)如果我做了
file_get_con
浏览 1
提问于2014-08-15
得票数 1
回答已采纳
1
回答
为什么
file_get_contents
()没有协议就
不能
工作
?
Version1: --我有这段代码,它也能
工作
:Version2:现在我需要用
file_get_contents
编写一个没有协议的路径,下面是我的代码的新版本。$id.".jpg
浏览 2
提问于2016-04-28
得票数 0
回答已采纳
1
回答
JSON_decode和
file_get_contents
,
为什么
不能
工作
?
、
、
php $currency_data = json_decode(
file_get_contents
('https://openexchangerates.org&g
浏览 0
提问于2019-12-29
得票数 0
回答已采纳
1
回答
使用cURL从API获取JSON不会返回任何内容。
、
、
我已经开始制作一个网页,它使用来自另一个网站的API来获取用于验证网站的电话号码,我已经使用Python完成了这项
工作
。但是,当我尝试使用cURL从API获取JSON数据时,它什么也不返回。
浏览 40
提问于2018-12-23
得票数 0
2
回答
试图从API输出解析XML/JSON
、
、
这是我的代码: public function Parse ($url) { $fileContents =
file_get_contents
浏览 3
提问于2016-04-20
得票数 1
回答已采纳
1
回答
带有空文件的
file_get_contents
不
工作
、
、
、
我尝试使用
file_get_contents
表单PHP,但它不起作用。这是我的密码:
为什么
,
为什么
他
不能
打开文件text.txt?
浏览 6
提问于2013-07-12
得票数 5
回答已采纳
0
回答
file_get_content不起作用的Post请求
、
、
、
我正在尝试使用
file_get_contents
来"post“到一个url并获取身份验证令牌。我遇到的问题是它返回一个错误。Message:
file_get_contents
(something): failed to open stream: HTTP request failed!"$username:$password"), ) $token =
浏览 1
提问于2017-01-11
得票数 4
2
回答
PHP
file_get_contents
()不加载外部动态内容
、
、
跨域是被禁止的,所以iframe,AJAX和jquery load都
不能
工作
。PHP
file_get_contents
(),但是页面中动态生成的内容不会加载。请帮助我了解
为什么
以及如何解决此问题?<head></head> $url = 'https://bookmate.c
浏览 2
提问于2016-03-06
得票数 1
3
回答
如何修复这个警告:
file_get_contents
():无法找到包装器"public"?
、
、
、
这是我的代码:$file = 'public://directory/filename.txt'; 警告:
file_get_contents
():无法找到包装器"public“--您在配置PHP时忘记启用它了吗?
浏览 1
提问于2010-12-09
得票数 5
1
回答
使用
file_get_contents
()时无法在“生成”上爆炸
如果我正在爆炸的字符串只是一个局部变量,我可以让它
工作
,但是我
不能
让它使用
file_get_contents
(); [5]=> [6]=> [7]=>} $string =
file
浏览 0
提问于2012-08-13
得票数 7
回答已采纳
3
回答
PHP :
file_get_contents
不能
正常
工作
、
、
&stopName={$_GET['stopname']}"); $file =
file_get_contents
token']}&agencyName={$_GET['agency']}&stopName={$_GET['stopname']}", false, $context); //$fil
浏览 0
提问于2015-05-03
得票数 0
回答已采纳
2
回答
file_get_contents
不适用于无协议的urls?
像//google.com这样的东西不适用于
file_get_contents
,有没有一种不需要将协议添加到字符串中的解决方案?
浏览 2
提问于2015-05-04
得票数 0
回答已采纳
点击加载更多
相关
资讯
为什么维护工作让数据中心工作人员夜不能寐?
网站seo工作不能忽视
天气寒冷,工作热情不能减!
创业为什么不能平分股权
真人找工作不能只看工作还要看自己
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券