Php通过从另一个站点添加wmsauth重定向到url
我的php代码中有一个问题,我首先从另一个站点读取WMS auth标志,然后将该WMS auth标志放在URL中,然后用WMS auth标志重定向到该URL 下面是我正在使用的代码Php通过从另一个站点添加wmsauth重定向到url,php,Php,我的php代码中有一个问题,我首先从另一个站点读取WMS auth标志,然后将该WMS auth标志放在URL中,然后用WMS auth标志重定向到该URL 下面是我正在使用的代码 <?php $token = readfile("http://51.15.209.90:8800/fio/3b.rbt/"); header("Location: http://zer0live.hjkm.info:13292/neptune/colorstv/playlist.m3u8" . $token
<?php
$token = readfile("http://51.15.209.90:8800/fio/3b.rbt/");
header("Location: http://zer0live.hjkm.info:13292/neptune/colorstv/playlist.m3u8" . $token);
exit;
?>
有人能纠正这个代码吗
提前谢谢你你能试试这个吗:
<?php
$token: readfile("http://51.15.209.90:8800/fio/3b.rbt/");
header('Location: http://zer0live.hjkm.info:13292/neptune/colorstv/playlist.m3u8'.$token);
exit;
?>
如果您检查读取文件()的内容,它会将读取的内容直接发送到输出缓冲区,这样您就无法处理之前读取的内容 因此,请尝试改用
file\u get\u contents()
$token = file_get_contents("http://51.15.209.90:8800/fio/3b.rbt/");
header("Location: http://zer0live.hjkm.info:13292/neptune/colorstv/playlist.m3u8$token");
exit;