note 10587 added to header
| From: | spam at schu dot net | Date: | Thu, 11 Jan 2001 17:18:21 +0000 |
| Subject: | note 10587 added to header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9659@lists.php.net to get a copy of this message | ||
While trying to get php to generate real media pointer files dynamicly, I found that IE doesn't
like the caching lines in the header. It seems that you need to override the php default with the
header function. See the example code below:
<?
# Sample code that starts realplayer
# with file names from a DB.
Header ("Pragma: ");
Header ("Cache-Control: ");
Header ("Expires: ");
Header ("Content-Type: audio/x-pn-realaudio");
# insert DB code here
print "rtsp://host.com:554/$filename";
?>
I hope this saves someone some time!
schu
http://www.php.net/manual/function.header.php