| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1595 人关注过本帖
标题:求助!关于index.php?id=xxx 的问题
只看楼主 加入收藏
wxtv
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2009-9-17
结帖率:0
收藏
已结贴  问题点数:0 回复次数:3 
求助!关于index.php?id=xxx 的问题
<?php
$id = $_GET['id'];
header("Cache-Control:no-cache,must-revalidate");     
header("Pragma:no-cache");
$lines = file_get_contents(' http://218.22.14.84:8080/soms4/web/jwzt/ahtv/anhui_live.jsp?channelId=200');
$addresstemp = strstr($lines,"mms://");
$address = strtok($addresstemp,"\"");
echo $address;
?>
----------------------------
我想用<?php echo $id?>替换 http://218.22.14.84:8080/soms4/web/jwzt/ahtv/anhui_live.jsp?channelId=200这个中的200的值。

用上面的代码做成index.php的文件。

最后通过index.php?id=200来实现

不知道<?php echo $id?>在 http://218.22.14.84:8080/soms4/web/jwzt/ahtv/anhui_live.jsp?channelId= 如何来表达。望哪位高手指点一下为谢。
搜索更多相关主题的帖子: index php 
2009-09-18 00:06
SkyGull
Rank: 5Rank: 5
来 自:浙江杭州
等 级:贵宾
威 望:13
帖 子:839
专家分:324
注 册:2007-6-7
收藏
得分:3 
<?php
$id = $_GET['id'];
header("Cache-Control:no-cache,must-revalidate");     
header("Pragma:no-cache");
$lines = file_get_contents(' http://218.22.14.84:8080/soms4/web/jwzt/ahtv/anhui_live.jsp?channelId='.$id);
$addresstemp = strstr($lines,"mms://");
$address = strtok($addresstemp,"\"");
echo $address;
?>
2009-09-18 00:22
ttdw
Rank: 2
等 级:论坛游民
帖 子:10
专家分:47
注 册:2009-9-16
收藏
得分:3 
建议楼主学点基础吧.

C 入门中...
2009-09-19 18:03
czg123698741
Rank: 2
等 级:论坛游民
帖 子:348
专家分:84
注 册:2009-3-4
收藏
得分:3 
<a href="index.php?id=<? echo $_post["ID"]; ?>"></a>
2009-09-22 17:13
快速回复:求助!关于index.php?id=xxx 的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011950 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved