特殊浏览器无法显示页面... [英] special browser cannot display page ...

查看:92
本文介绍了特殊浏览器无法显示页面...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试做一些我认为容易的事情。说明:我最近

购买了多媒体播放器DVX-500E。这个播放器通过以太网连接

在我的本地网络上等等,允许浏览网页(不是每个人b $ b)。

我不喜欢我对此浏览器一无所知,也不了解媒体服务器的实现情况

(在电脑方面)。

我想用电视时间表浏览一个页面(简化版本的

EuroTV.com)。为此,我创建了一个php页面:


< ;?


$ sFile =

file_get_contents(" http://www.eurotv.com/scripts/Nowoutprint.cfm?Language = fr& AvailableIn = Belgium& Ty peAll = true& DisplaySummary = YES");

$ sFile = utf8_decode($ sFile);

$ sFile = ltrim($ sFile);

$ sFile = preg_replace(" /> \\\
< /", "",$ sFile);

$ sFile = preg_replace(" /> \\\ +< /","><",$ sFile);


echo $ sFile;

?>


此页面无法在浏览器中显示,但它在IE,Mozilla,Netscape下正确显示



这里没什么可惊讶的。令人惊讶的是,如果将

源代码复制粘贴到新文件(.htm)中,则此页面将正确显示

,没有任何问题)。

我已经测试了其他在这个浏览器中正确显示的php页面。

好​​的,所以我想知道问题是否是标题问题。我使用在线工具查看了

两个标题(.php和.htm页面):
http://tools.apocalx.com/entete-http/

然后我添加了这段代码来制作标题(.php和.htm)与

类似:


header(" ETag:\" e5d8-32a6-c58d3b77 \" ;");

header(" Accept-Ranges:bytes");

header(" Content-Type:text / html");

header(Last-Modified:Wed,14 Dec 2005 23:21:31 GMT);


我已使用在线工具查看标题上面提到的和

类似。

但它仍然无法正常工作......


有人有个主意关于问题可以来自哪里?


PS:我得到的唯一错误信息是短信对不起,页面不能显示

。所以,这方面没有任何帮助(此代码由DVX-500E的

固件或PC端的媒体服务器代码生成。两者都是

不透明,专有代码)。


谢谢。


Laurent Compere

Hi,

I''m trying to do something I thought easy. Explanation : I''ve recently
bought a Multimedia Player DVX-500E. This player is connected via ethernet
on my local network et allows among other things to browse web pages (not
everyone).
I don''t know anything about this browser nor about media server implentation
(on the pc side).
I want to browse a page with Tv schedule (a simplified version of
EuroTV.com). To do that, I''ve created a php page :

<?

$sFile =
file_get_contents("http://www.eurotv.com/scripts/Nowoutprint.cfm?Language=fr&AvailableIn=Belgium&Ty peAll=true&DisplaySummary=YES");
$sFile = utf8_decode($sFile);
$sFile = ltrim($sFile);
$sFile = preg_replace ("/>\n</", " ", $sFile);
$sFile = preg_replace ("/>\s\s+</", "><", $sFile);

echo $sFile;
?>

This page cannot be displayed in the browser, however it displays correctly
under IE, Mozilla, Netscape.
Nothing surprising till here. What''s surprising is that if copy-paste the
source code in a new file (.htm), this page is then displayed correctly
without any problem).
I''ve teste with other php pages that display correctly in this browser.
Ok, so I was wondering if the problem was a problem of headers. I''ve looked
both headers (of the .php and .htm pages) with the online tool :
http://tools.apocalx.com/entete-http/
Then I added this code to make the headers (of the .php and .htm) being
similar :

header("ETag: \"e5d8-32a6-c58d3b77\"");
header("Accept-Ranges: bytes");
header("Content-Type: text/html");
header("Last-Modified: Wed, 14 Dec 2005 23:21:31 GMT");

I''ve check the headers with the online tool mentioned above and there are
similar.
But it still doesn''t work...

Someone has an idea about where the problem can come from ?

PS: The only error message I get is a short "Sorry, the page cannot be
displayed". So, no help on that side (this code is generated either by the
firmware of the DVX-500E or by the media server code on the pc side. Both
are opaque, proprietary codes).

Thanks.

Laurent Compere

推荐答案

sFile =

file_get_contents(" http://www.eurotv.com/scripts/Nowoutprint.cfm?Language = fr& AvailableIn = Belgium& Ty peAll = true& DisplaySummary =是");
sFile =
file_get_contents("http://www.eurotv.com/scripts/Nowoutprint.cfm?Language=fr&AvailableIn=Belgium&Ty peAll=true&DisplaySummary=YES");


sFile = utf8_decode(
sFile = utf8_decode(


sFile);
sFile);


这篇关于特殊浏览器无法显示页面...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆