Hi, etully,
I just installed and tried wget in the way you suggested.
I noticed that a wget for resource.php reports the correct MIME type, but is definitely not retrieving the actual FLV file because the Length is reported as 262, whereas the test.flv Length is 5,967,743.
wget for test.flv
HTTP/1.1 200 OK
Date: Wed, 25 Jul 2007 18:58:50 GMT
Server: Apache/2.0.55 (Win32) PHP/4.4.6
Last-Modified: Wed, 27 Jun 2007 02:09:29 GMT
ETag: "7648-5b0f7f-bc76e8c3"
Accept-Ranges: bytes
Content-Length: 5967743
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: video/x-flv
Length: 5,967,743 (5.7M) [video/x-flv]
wget for resource.php
HTTP/1.1 200 OK
Date: Wed, 25 Jul 2007 18:59:07 GMT
Server: Apache/2.0.55 (Win32) PHP/4.4.6
X-Powered-By: PHP/4.4.6
Content-Length: 262
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: video/x-flv
Length: 262 [video/x-flv]
Anyway, in my PHP script I set every header returned by the wget request for the the test.flv file.
header('Date: Wed, 25 Jul 2007 18:58:50 GMT');
header('Server: Apache/2.0.55 (Win32) PHP/4.4.6');
header('Last-Modified: Wed, 27 Jun 2007 02:09:29 GMT');
header('ETag: "7648-5b0f7f-bc76e8c3"');
header('Accept-Ranges: bytes');
header('Content-Length: 5967743');
header('Keep-Alive: timeout=15, max=100');
header('Connection: Keep-Alive');
header('Content-Type: video/x-flv');
header('Length: 5,967,743 (5.7M) [video/x-flv]');
readfile("resources\test.flv");
But it still doesn't work. Any other ideas?
J