Hi, I created a simple example of a problem that I have with a PHP script that works in Netscape, and in Internet Explorer when cookies are disabled, but not in Internet Explorer when cookies are enabled. The purpose of the script is to create a .ram file on the fly, and playback part of a streaming file.
The example consiste of the following two files: 1) test_real.php <?php global $playlist; session_start(); if (!session_is_registered('playlist')) { session_register('playlist'); } $playlist[0]['url'] = "/s/surfnet/real/rd2000/mpeg/sfeermontage.mpg"; $playlist[0]['start'] = 10; $playlist[0]['end'] = 20; ?> <html> <body> <a href="./play.php/dummy.ram<?php echo"?".SID?>">Open Real Playlist</a> </body> </html> 2) play.php (which should be in the same directory as test_real.php) <?php global $playlist; session_start(); if (!session_is_registered('playlist')) { session_register('playlist'); } $filename = "rtsp://stream1.surfnet.nl".$playlist[0]['url']; $from = $playlist[0]['start']; $to = $playlist[0]['end']; header("Content-Type: audio/x-pn-realaudio;"); echo ($filename . "?start=".$from."&end=$to"); ?> If test_real.php is opened, and the link 'Open Real Player' is selected, 10 seconds of the streaming file are played. But not in IE with cookies enabled. In that case, Real displayes the error message; 'unable to locate the server' [...] rtsp://stream1.surfnet.nl?start=&end= What you see here is that the values of $filename, $from and $to are empty. But if you outcomment the line header("Content-Type: audio/x-pn-realaudio;"); in play.php, the output in the browsers reads: rtsp://stream1.surfnet.nl/s/surfnet/real/rd2000/mpeg/sfeermontage.mpg?start= 10&end=20 which is correct. I don't understand why the variables are empty when the header infomation is sent, but have the correct values if the header is not sent. Nor do I understand why this does work in Netscape and IT and cookies disabled. A bug/feature in IE? I have spend far too much time on this, and your help is very welcome. Cheers, André Rosendaal PS - The SID implementation is fast abd dirty, I know - dummy.ram is just a string, not a reference to an existing file: it help IE to recognize the correct MIME type -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php