找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1258|回复: 9

[iptv信源 资源分享或寻求] 有坛友需求的广州电视台php

[复制链接]
发表于 2022-5-17 23:32 | 显示全部楼层 |阅读模式
本帖最后由 guoma 于 2022-5-18 21:09 编辑

广视php──2行代码搞定;
  1. <?php
  2. $id = isset($_GET['id'])?$_GET['id']:'gzys';
  3. $n = array(
  4.    'gzzh' => 'zhonghe',//广州综合
  5.    'gzxw' => 'xinwen',//广州新闻
  6.    'gzfz' => 'fazhi',//广州法治(暂时失效)
  7.    'gzsh' => 'shenghuo',//广州南国都市
  8.    'gzys' => 'yingshi',//广州影视(暂时失效)
  9.    'gzjs' => 'jingsai'//广州竞赛
  10.    );
  11. $playurl = json_decode(file_get_contents('http://www.gztv.com/gztv/api/tv/'.$n[$id])) -> data;
  12. header('Location:'.$playurl);
  13. //echo $playurl;
  14. ?>
复制代码










我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-5-17 23:37 来自手机 | 显示全部楼层
厉害了我的哥
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 02:57 | 显示全部楼层
你们试了能用吗?

点评

header('Location:'.$playurl);  详情 回复 发表于 2022-5-18 03:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 03:43 | 显示全部楼层
love016 发表于 2022-5-18 02:57
你们试了能用吗?

header('Location:'.$playurl);

点评

非常谢谢大佬,改了可以用  详情 回复 发表于 2022-5-18 21:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 10:47 | 显示全部楼层
爱死老大了。就是我说的需求。哇哈哈
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 11:43 | 显示全部楼层
干脆不懂php的咋办呀
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 11:43 | 显示全部楼层
干脆不懂php的咋办呀
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 14:06 | 显示全部楼层
PHP怎么操作的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 16:32 | 显示全部楼层
没有南国都市吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-18 21:43 | 显示全部楼层
jiteloozz 发表于 2022-5-18 03:43
header('Location:'.$playurl);

非常谢谢大佬,改了可以用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 14:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表