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



[PHP] browser caching

2002-03-15 Thread Peter Hall

Hi,

I'm having difficulty getting a php page to reload when the user goes back
to it. The page is initially loaded with no variables passed, but is then
reloaded with variables passed with GET and also retrieves variables from a
session cookie, which is set by a different page on first load.

This works fine, but the problem is, when the user goes back to the first
page (via history) the page does not reload and it fails to receive the
cookie data even though it receives it every other time it loads. So
basically I can only get the cached version. I have tried the following at
the start of the document:

session_cache_limiter('must-revalidate');

// and this:

session_cache_limiter('nocache');

// and this:

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);

and a few combinations. I am testing with IE 5.5 with all default settings.
I am using PHP 4.1.1

Thanks.

Peter




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




[PHP] Browser Caching

2001-04-29 Thread Steve Haemelinck

Hi all
I use sessions the authenticate users, but I seem to have a problem.
This is what happens:
1)  A user logs in on PC one with his username and password. (So far so good)
2)  Another user logs in with his details on the same computer -- He is
logged in with his details but the page displayed is the one of the other
user unless he refreshes the page.

I thought this was because the page might be cached, but when I set the
header(cache-control: no-cache)  the meta tag http-equiv=Expires
content=-1 it still produces the same effect.  How can I solve this
problem?
Haemelinck Steve

Personal:
Haemelinck.be - Developers Unite :)
Junior WebDeveloper
http://www.haemelinck.be:8080/
[EMAIL PROTECTED]

Work:
MCT IT Consulting - Take consulting 2 the next level
Junior IT Consultant
http://www.mct.be/
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Browser Caching

2001-04-29 Thread Chris Adams

On 29 Apr 2001 07:19:15 -0700, Steve Haemelinck [EMAIL PROTECTED] wrote:
 I thought this was because the page might be cached, but when I set the
 header(cache-control: no-cache)  the meta tag http-equiv=Expires
 content=-1 it still produces the same effect.  How can I solve this
 problem?

Have you tried with the other HTTP headers for expiration? This is floating
around various places - the PHP manual, etc. 

header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Date in the past
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT); //always modified
header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1
header(Pragma: no-cache); // HTTP/1.0


If that doesn't work (IE/NS can be really buggy with caching - I once had a
problem where a page started returning a 500 error code and IE5 continued to
display the old version of that page, even though I had set the cache to check
every time), some alternatives come to mind:

- Embed some random variable in the URL. I think this is the cleanest way of
  dealing with browsers which ignore the HTTP headers - simply start encoding
  the session ID in your links or even something like DontCacheThisPage= .
  time(). If the URLs are different, the browser won't cache them, which should
  sidestep the issue.

If for some reason you can't do that and don't mind kludgy looking code:

- Use POST. It's ugly and nasty but the browsers are better about always
  reloading pages which are the response to a POST request.

- Equally ugly, use JavaScript. When you change a document's location,
  there's a parameter which if true will cause the browser to reload the page
  even if it's cached. The least ugly way of doing this would be to write a
  function and put it in a handler ('OnClick=return forceLoad('myurl');') so
  that poeople w/o JS will still be able to use your pages.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]