This is not working:
header("Location: rtsp://address_of_livestream"); exit;
I guess I have to change the header to:
header("Content-type: abc");
abc would be the livestream content type..
| SitePoint Sponsor |


This is not working:
header("Location: rtsp://address_of_livestream"); exit;
I guess I have to change the header to:
header("Content-type: abc");
abc would be the livestream content type..
I'd imagine something like this would work.
PHP Code:header('Content-type: abc');
header('Location: rtsp://address_of_livestream');


hmm .. and what is abc? [img]images/smilies/smile.gif[/img] Its a Realaudio stream by the way..





*Here* are the mime types for almost everything, check the file extension and then place the appropriate mime type instead of 'abc', my guess is it should bePHP Code:header('Content-type: audio/x-realaudio');
- website


doesn't really work for me.. any other ideas?





what aboutSomething like thatPHP Code:<?php //start of php file
header('Content-type: audio/x-realaudio');
readfile('location/of/target/file.extension');
//end of php file
?>
But anyway, what are you trying to achive ?
- website
Just a note, you don't set headers if you are just going to be redirecting. The Content-Type needs to be set on the actual file. (Website's would work correctly if that is what you want.)
Some more information would be a good idea, me thinks.
Who walks the stairs without a care
It shoots so high in the sky.
Bounce up and down just like a clown.
Everyone knows its Slinky.
Bookmarks