OK here goes,
I basically have a video stream (internal ip) that i need to proxy via a php script (which will check the user is logged in) and then i will have a main page that streams from proxy.php.
This is what i have so far:
proxy.php
<?php
set_time_limit(0);
$fp = fsockopen("server.domain.co.uk", 8000, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET /andi/news011008.wmv HTTP/1.1\r\n";
$out .= "Host: server.domain.co.uk\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp);
}
fclose($fp);
}
?>
viewvideo.html
<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="proxy.php" />
</object>
If i view the proxy page directly i can see the header information and it does appear to spit out the data to the browser but when i load it through the html page is doesnt show anythign, do i need to stream this in a different way for it to work?
Any help would be great im getting quite urgent for a solution!
Thanks,
Cyf
<message edited by cyf on Tuesday, November 18, 2008 9:39 PM>