Re: [PHP] Browser caching problem.

2004-09-19 Thread Octavian Rasnita
BTW, does anyone know if there is a program or script that can listen to
the stream and save it into a file?
I know this can be done using a program for recording the sound, but that is
not a very professional solution and it depends on the quality of the sound
card, the speed of internet connection, etc.

I am wondering if there is a program that can work with the mms:// protocol
for getting the data, or other protocols for streaming if there are more...
or if there are any specifications for making such a program.

Thanks.

Teddy

- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 19, 2004 2:25 AM
Subject: Re: [PHP] Browser caching problem.


On Sunday 19 September 2004 07:12, Daniel Guerrier wrote:
 I'm using this code to dynamically retrieve windows
 media files and send it to the browser.  I thought the
 cache header would prevent the file from being cached.

 The only problems is the .wmv file still ends up in my
 IE temp files folder.  How can I prevent this from
 happening?

Don't give them the file in the first place?

If you're trying to prevent someone from saving the file and playing it back
at a later date then I think you'll need to stream the file. Have a look on
the MS site. Note that no matter what you do, if someone is determined
enough
they'll still be able to capture the contents.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Browser caching problem.

2004-09-18 Thread Daniel Guerrier
I'm using this code to dynamically retrieve windows
media files and send it to the browser.  I thought the
cache header would prevent the file from being cached.

The only problems is the .wmv file still ends up in my
IE temp files folder.  How can I prevent this from
happening?

?php
require_once(../admin/constant.php);
header(Content-Type: video/x-ms-wmv);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .
 GMT);
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Cache-Control: no-store, no-cache,
must-revalidate); 
header(Cache-Control: post-check=0, pre-check=0,
false);
header(Pragma: no-cache);
$file = DATAURL . /media/ . $_GET['mediafile'];
?
ASX VERSION=3.0
ENTRY
REF HREF =?php echo $file; ? /
/ENTRY
/ASX


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Browser caching problem.

2004-09-18 Thread Jason Wong
On Sunday 19 September 2004 07:12, Daniel Guerrier wrote:
 I'm using this code to dynamically retrieve windows
 media files and send it to the browser.  I thought the
 cache header would prevent the file from being cached.

 The only problems is the .wmv file still ends up in my
 IE temp files folder.  How can I prevent this from
 happening?

Don't give them the file in the first place?

If you're trying to prevent someone from saving the file and playing it back 
at a later date then I think you'll need to stream the file. Have a look on 
the MS site. Note that no matter what you do, if someone is determined enough 
they'll still be able to capture the contents.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Indecision is the true basis for flexibility.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Browser caching problem.

2004-09-18 Thread Daniel Guerrier
I am streaming it.  That code is in an .asx metafile.
I assume it is supposed to work like a .ram for real
media.

Microsoft suggests using an asx file to stream media.
It does stream, I just do not want it to be cached in
my IE temp files.
--- Jason Wong [EMAIL PROTECTED] wrote:

 On Sunday 19 September 2004 07:12, Daniel Guerrier
 wrote:
  I'm using this code to dynamically retrieve
 windows
  media files and send it to the browser.  I thought
 the
  cache header would prevent the file from being
 cached.
 
  The only problems is the .wmv file still ends up
 in my
  IE temp files folder.  How can I prevent this from
  happening?
 
 Don't give them the file in the first place?
 
 If you're trying to prevent someone from saving the
 file and playing it back 
 at a later date then I think you'll need to stream
 the file. Have a look on 
 the MS site. Note that no matter what you do, if
 someone is determined enough 
 they'll still be able to capture the contents.
 
 -- 
 Jason Wong - Gremlins Associates -
 www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet
 Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Indecision is the true basis for flexibility.
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php