腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
preg_match
与
file_get_contents
空数组匹配
、
、
我尝试
使用
preg_match
提取数据。$HTML = '#a#TEXT#a#';这是输入文件file.
php
:#a#TEXT#a# $HTML =
file_get_contents
("file.
php
&quo
浏览 1
提问于2021-12-03
得票数 0
回答已采纳
1
回答
php
的
file_get_contents
()
/myfolder/myImageScript.
php
'); // outputs image on pageecho
file_get_contents
('../myfolder/myImageScript.
php
'); // nothing displayed 我认为这是失败的,因为
在
php
中
,脚本(
在
我的例子
中
是myImageSc
浏览 4
提问于2015-01-31
得票数 0
回答已采纳
2
回答
如何
从一个页面发布表单数据并在同一页面上检索它?
、
、
、
($filename, ++$number_before);
preg_match
("#\d+#",
php
echo ($filelike) ?></span>Like.txt:这是我目前
使用
的代码。这里发生的事情是,检索文件'like.txt‘的内容(
在
本例
中
为4),然后将其显示<em
浏览 2
提问于2015-04-22
得票数 0
3
回答
用于在网页上搜索单词的
PHP
脚本
、
、
有没有人可以告诉我
如何
更改下面的
PHP
脚本,如果站点中有“站立”一词,则显示“找到”,如果没有,则显示“未找到”。$data =
file_get_contents
('http://www.stutteringjohnsmmith.com/#/0');
preg_match
($regex,$data,$match)
浏览 1
提问于2011-06-13
得票数 3
回答已采纳
2
回答
通过
tor的
file_get_contents
、
、
、
所以,我正在寻找一个
使用
php
的网页标题。
在
研究了5秒钟后,我在这里找到了答案: $str =
file_get_contents
($url);if(strlen($str)>0){
preg_match
("
浏览 38
提问于2018-06-16
得票数 1
回答已采纳
1
回答
特定div
、
、
、
我的问题是,我想
使用
"
file_get_contents
“2数据从div
中
同名的站点中提取
php
。我需要提取数据,然后用
PHP
为每个变量分配一个特定变量。无论
如何
,下面是不返回任何内容的代码片段。$htmlOficial =
file_get_contents
('https://www.dolarhoy.com/cotizaciondolaroficial');
preg_match
(
浏览 1
提问于2020-06-17
得票数 0
回答已采纳
1
回答
如何
通过
PHP
在
file_get_contents
中
使用
preg_match
?
、
、
、
如何
在file_get_content中正确
使用
preg_match
?我有一个表单,用户可以登录,如果用户输入了错误的信息,
file_get_contents
内部的默认回声将被
使用
preg_match
的新消息取代,但它不起作用。我有一个
PHP
代码片段,但我只得到了一个白色的空白页面。$reply =
file_get_contents
($url, false, $context); if(
preg_match
($reply,
浏览 8
提问于2016-07-25
得票数 1
回答已采纳
2
回答
get_file_contents()后面的
php
不可见字符
、
、
我
使用
php
,并希望
使用
get_file_contents()获取文件的内容,然后
使用
preg_match
()获取"DisplayName“。这个问题适用于整个文件。$file =
file_get_contents
("file.txt");
preg_match
("/DisplayName/", $file, $matches);/
浏览 1
提问于2018-10-31
得票数 0
回答已采纳
2
回答
如果文件包含此文本,请
使用
PHP
进行检查
php
函数应该检查文件index.
php
是否包含CMS链接。我试着跟随,但它不工作: $file =
file_get_contents
("./index.
php
");我是
PHP
的新手。我还没有用搜索找到答案。
浏览 0
提问于2012-10-10
得票数 0
3
回答
如何
从另一台服务器获取html页面,并在该文件的某个点插入
php
代码
、
、
、
我们正在完全重新做我们的网站,并将我们的大部分页面放入一个新的CMS (Adobecq5- on服务器)
中
。所以,我需要 1.
使用
上面的URL从Server1
中
提取模板。所以,最终的url应该是这样的:http://server2.com/books.
浏览 1
提问于2014-03-27
得票数 0
回答已采纳
1
回答
在
php
中
显示结果吗?
、
我有一个for循环,它将循环
通过
php
中
的一组页面。count=$count"; $result = "file2.
php
?count=$count"; $nc=$count+10; if (
preg_match
b/i", $match)) {
浏览 1
提问于2010-02-25
得票数 0
3
回答
如何
在
PHP
中
使用
正则表达式从robots.txt文件中提取站点地图引用?
、
、
、
假设文件是这样的;foobarhello world我正在尝试
使用
正则表达式来精确地提取;到目前为止,我已经有了这段
PHP
代码; $robots_url = "http://www.cgdomestics.co
浏览 2
提问于2012-02-18
得票数 0
回答已采纳
2
回答
从另一个页面获取div的元素(
PHP
)
、
、
、
所以我有第一页:现在我想要获取div one的元素,它将返回This is text one,我该怎么做呢?
浏览 1
提问于2011-02-19
得票数 10
回答已采纳
1
回答
如何
在类
中
获取方法代码
、
如何
获得该方法的代码?--我正在尝试如下所示:class SiteController{ //bla{ }
preg_match
(
浏览 3
提问于2013-10-29
得票数 0
2
回答
如何
使用
PHP
在
不同的网站上获得另一个DIV的HTML
、
->和其他人的网站: <p>Hello</p></div> 我
如何
在我的网站上获得
浏览 8
提问于2013-12-31
得票数 0
回答已采纳
1
回答
将URL从表单添加到正则表达式
、
、
因此,如果用户想要查看fb的股票报价,用户将在表单字段
中
输入它并点击go,然后要获取的URL将更改为用户输入。下面是我的代码:$content =
file_get_contents
('http://finance.yahoo.com/q?s=fb&ql=1'); $fb =
file_get_contents
('http://www.cbssports.com
浏览 1
提问于2012-05-23
得票数 0
回答已采纳
1
回答
wp-config.
php
外部访问
、
、
、
我需要一个函数来获得wp-config数据库,用户,并从另一个服务器
通过
。 $f = "/home/"./www/wp/wp-config.
php
"; $c =
file_get_contents
($f);
preg_match
('/d
浏览 2
提问于2012-08-24
得票数 0
1
回答
如何
使用
精确的在线Webhooks订阅
、
、
我可以
使用
精确的在线API订阅web钩子,我无法从web钩子通知
中
获得对CallbackURL的响应。subscription->CallbackURL = $callback;$subscription->save(); 请给我建议,
通过
确切的在线
php
获得web钩子通知。
浏览 2
提问于2018-07-06
得票数 0
回答已采纳
2
回答
PHP
-从
php
文件
中
的注释
中
获取信息
在
php
文件
中
形成注释,而我知道wordpress
使用
这个特性。例如,我有一个名为theme的文件夹,其中有三个文件包含以下注释:/* Template Name: page *//* Template Name: category*/ /* Template Name: Tags */ 那么
如何
浏览 0
提问于2013-04-06
得票数 0
回答已采纳
3
回答
如何
在
Php
中
使用
google Currency API转换货币?
、
、
我正在
使用
谷歌货币转换应用程序接口
在
Php
中
使用
file_get_content,但无法获得输出,因为得到错误,那么
如何
在
php
中
使用
以下接口转换任何货币。 function convertCurrency($amount, $from, $to) $url = "http://www.google.com/financea=$amount&from=$f
浏览 0
提问于2018-06-19
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券