dony113407 2015-04-06 09:32
浏览 415
已采纳

为什么header(); 是不是发送http referrer?

My streaming content is on another web server ex: stream.mysite.com. On stream.mysite.com, I configured IIS rewrite rules so when I try stream.mysite.com/video.mp4 it is going to a blank page and when I put a link on my site it starts downloading. But i need it to work like this:

<?php

$url = $_GET['u'];
header("Location: $url");
die();

?>

mysite.com/go.php?u=stream.mysite.com/video.mp4 doesn't work.

Sorry English is not my first language, I hope I have made myself clear.

  • 写回答

2条回答 默认 最新

  • dongyu1614 2015-04-06 10:10
    关注

    try like this.I hope this will help you

    <?php
       echo ("<SCRIPT LANGUAGE='JavaScript'>
       window.location.href='url';
       </SCRIPT>");
     ?>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上