Re: [PHP] Memory cache problem

2008-06-14 Thread Stut

On 14 Jun 2008, at 01:02, tedd wrote:

At 11:47 PM +0100 6/13/08, Stut wrote:

On 13 Jun 2008, at 23:20, R B wrote:

I search in both caches, and the video appears in the memory cache.


Sorry, but that doesn't answer the question of why you/he doesn't  
want it to be cached. If he's trying to protect the videos from  
being copied then you're going to need to make it clear to him that  
you can't stop that from happening without DRM which is a whole  
other kettle of fish and usually not worth it.


Aside from that I'm not aware of anything else you can do to stop  
clients caching your content. At the end of the day you have no  
reliable control over what happens after the data leaves the server.


-Stut


Caching is one thing, but viewing the video is another -- unless I  
am mistaken.


While it's true that you have no control over the video file once it  
leaves the server, however, what the file does in a foreign  
environment is something else.


Typically, DRM schemes are needed when someone wants to protect  
digital media from being copied to play in standard players. But, if  
you want to restrict playing a video to just your site, then that's  
another matter.


One can place actionscript in the video that will stop it from  
playing if certain conditions are not met. For example, you can have  
a file that exits in your site, but no where else. If the video is  
downloaded and an attempt is made to play it, then the video simply  
looks for the companion file and if it's not there, then it won't  
play.


Is this not true?


Indeed, but things like that are easily stripped. In addition to that  
most DRM schemes have been broken. It also tends to create issues for  
some users who may want to view the videos at a time that suits them  
in a place where it's not feasible to stream it from your website. At  
the end of the day it comes down to the website and what limitations  
the users will put up with. Either way it's beyond the scope of this  
list.


-Stut

--
http://stut.net/

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



[PHP] Memory cache problem

2008-06-13 Thread R B
Hello,

I´m making a video manual, but i don´t want to be cached in the client
machine.

I make a script like this:

?php
 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
 header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
 header(Cache-Control: no-store, no-cache, must-revalidate);
 header(Cache-Control: post-check=0, pre-check=0, false);
 header(Pragma: no-cache);

 readfile($video_name);
?

With Internet explorer the script works fine. But Firefox have two types of
cache: Memory cache and disk cache.
With firefox disk cache, the script works fine, because don´t appears in the
disk cache, but i have problems with the Memory cache.

How can i avoid to appears in the firefox memory cache?


Re: [PHP] Memory cache problem

2008-06-13 Thread Stut

On 13 Jun 2008, at 23:12, R B wrote:

I´m making a video manual, but i don´t want to be cached in the client
machine.

I make a script like this:

?php
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);

readfile($video_name);
?

With Internet explorer the script works fine. But Firefox have two  
types of

cache: Memory cache and disk cache.
With firefox disk cache, the script works fine, because don´t  
appears in the

disk cache, but i have problems with the Memory cache.

How can i avoid to appears in the firefox memory cache?


Why don't you want it cached?

What makes you think it's cached in memory on FF?

-Stut

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



Re: [PHP] Memory cache problem

2008-06-13 Thread R B
The video manual it´s not for me, it´s for a customer and he don´t want to
be cached in the client machine...

If you put in firefoxin the url area:   about:cache , firefox display the
Memory cache and the Disk cache...

I search in both caches, and the video appears in the memory cache.

On Fri, Jun 13, 2008 at 4:17 PM, Stut [EMAIL PROTECTED] wrote:

  On 13 Jun 2008, at 23:12, R B wrote:

 I´m making a video manual, but i don´t want to be cached in the client
 machine.

 I make a script like this:

 ?php
 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
 header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
 header(Cache-Control: no-store, no-cache, must-revalidate);
 header(Cache-Control: post-check=0, pre-check=0, false);
 header(Pragma: no-cache);

 readfile($video_name);
 ?

 With Internet explorer the script works fine. But Firefox have two types
 of
 cache: Memory cache and disk cache.
 With firefox disk cache, the script works fine, because don´t appears in
 the
 disk cache, but i have problems with the Memory cache.

 How can i avoid to appears in the firefox memory cache?


 Why don't you want it cached?

 What makes you think it's cached in memory on FF?

 -Stut

 --
 http://stut.net/


Re: [PHP] Memory cache problem

2008-06-13 Thread Stut

On 13 Jun 2008, at 23:20, R B wrote:
The video manual it´s not for me, it´s for a customer and he don´t  
want to be cached in the client machine...


If you put in firefoxin the url area:   about:cache , firefox  
display the Memory cache and the Disk cache...


I search in both caches, and the video appears in the memory cache.


Sorry, but that doesn't answer the question of why you/he doesn't want  
it to be cached. If he's trying to protect the videos from being  
copied then you're going to need to make it clear to him that you  
can't stop that from happening without DRM which is a whole other  
kettle of fish and usually not worth it.


Aside from that I'm not aware of anything else you can do to stop  
clients caching your content. At the end of the day you have no  
reliable control over what happens after the data leaves the server.


-Stut

--
http://stut.net/


On Fri, Jun 13, 2008 at 4:17 PM, Stut [EMAIL PROTECTED] wrote:
On 13 Jun 2008, at 23:12, R B wrote:
I´m making a video manual, but i don´t want to be cached in the client
machine.

I make a script like this:

?php
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);

readfile($video_name);
?

With Internet explorer the script works fine. But Firefox have two  
types of

cache: Memory cache and disk cache.
With firefox disk cache, the script works fine, because don´t  
appears in the

disk cache, but i have problems with the Memory cache.

How can i avoid to appears in the firefox memory cache?

Why don't you want it cached?

What makes you think it's cached in memory on FF?

-Stut

--
http://stut.net/




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



Re: [PHP] Memory cache problem

2008-06-13 Thread tedd

At 11:47 PM +0100 6/13/08, Stut wrote:

On 13 Jun 2008, at 23:20, R B wrote:

I search in both caches, and the video appears in the memory cache.


Sorry, but that doesn't answer the question of why you/he doesn't 
want it to be cached. If he's trying to protect the videos from 
being copied then you're going to need to make it clear to him that 
you can't stop that from happening without DRM which is a whole 
other kettle of fish and usually not worth it.


Aside from that I'm not aware of anything else you can do to stop 
clients caching your content. At the end of the day you have no 
reliable control over what happens after the data leaves the server.


-Stut


Caching is one thing, but viewing the video is another -- unless I am mistaken.

While it's true that you have no control over the video file once it 
leaves the server, however, what the file does in a foreign 
environment is something else.


Typically, DRM schemes are needed when someone wants to protect 
digital media from being copied to play in standard players. But, if 
you want to restrict playing a video to just your site, then that's 
another matter.


One can place actionscript in the video that will stop it from 
playing if certain conditions are not met. For example, you can have 
a file that exits in your site, but no where else. If the video is 
downloaded and an attempt is made to play it, then the video simply 
looks for the companion file and if it's not there, then it won't 
play.


Is this not true?

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] Memory cache problem

2008-06-13 Thread Nathan Nobbe
On Fri, Jun 13, 2008 at 8:02 PM, tedd [EMAIL PROTECTED] wrote:

 At 11:47 PM +0100 6/13/08, Stut wrote:

 On 13 Jun 2008, at 23:20, R B wrote:

 I search in both caches, and the video appears in the memory cache.


 Sorry, but that doesn't answer the question of why you/he doesn't want it
 to be cached. If he's trying to protect the videos from being copied then
 you're going to need to make it clear to him that you can't stop that from
 happening without DRM which is a whole other kettle of fish and usually not
 worth it.

 Aside from that I'm not aware of anything else you can do to stop clients
 caching your content. At the end of the day you have no reliable control
 over what happens after the data leaves the server.

 -Stut


 Caching is one thing, but viewing the video is another -- unless I am
 mistaken.

 While it's true that you have no control over the video file once it leaves
 the server, however, what the file does in a foreign environment is
 something else.

 Typically, DRM schemes are needed when someone wants to protect digital
 media from being copied to play in standard players. But, if you want to
 restrict playing a video to just your site, then that's another matter.

 One can place actionscript in the video that will stop it from playing if
 certain conditions are not met. For example, you can have a file that exits
 in your site, but no where else. If the video is downloaded and an attempt
 is made to play it, then the video simply looks for the companion file and
 if it's not there, then it won't play.

 Is this not true?


are you asking a rhetorical question here tedd?  i thought you implemented
something like that w/ help of the list some months back.

-nathan