|
Posted by Laurent Compere on 12/15/05 14:20
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&TypeAll=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
[Back to original message]
|