Re: [PHP] Streaming download to IE doesn't work

2007-06-02 Thread Steve
That's why you comment your code. Take the extra time and put a bit of effort into explaining yourself. Add in a paragraph explaining what's going on, link to whatever solution you found on the web (who knows it might still exist), and just outright bloat it with comments. You might find it anno

Re: [PHP] Streaming download to IE doesn't work

2007-05-31 Thread Richard Lynch
On Wed, May 30, 2007 9:16 pm, Daniel Kasak wrote: > On Wed, 2007-05-30 at 13:40 -0500, Richard Lynch wrote: > >> On Tue, May 29, 2007 6:37 pm, Daniel Kasak wrote: >> > Actually, that blog had absolutely nothing to do with my problem >> > ( thanks for RTFP!). Not only that, but the recommendation th

Re: [PHP] Streaming download to IE doesn't work

2007-05-30 Thread Daniel Kasak
Sorry ... forgot to comment on this ... On Wed, 2007-05-30 at 13:40 -0500, Richard Lynch wrote: > > ... in particular, adding: > > > > header("Cache-control: private"); > > header("Pragma: public"); > > > > fixed things perfectly. Also note that things worked perfectly with > > normal http acces

Re: [PHP] Streaming download to IE doesn't work

2007-05-30 Thread Daniel Kasak
On Wed, 2007-05-30 at 13:40 -0500, Richard Lynch wrote: > On Tue, May 29, 2007 6:37 pm, Daniel Kasak wrote: > > Actually, that blog had absolutely nothing to do with my problem > > ( thanks for RTFP!). Not only that, but the recommendation that I > > construct URLs: > > > > http://address.com/scri

Re: [PHP] Streaming download to IE doesn't work

2007-05-30 Thread Richard Lynch
On Tue, May 29, 2007 6:37 pm, Daniel Kasak wrote: > Actually, that blog had absolutely nothing to do with my problem > ( thanks for RTFP!). Not only that, but the recommendation that I > construct URLs: > > http://address.com/script/thing=2/this=3/that=4/download.txt > > is patently ridiculous. Wh

Re: [PHP] Streaming download to IE doesn't work

2007-05-30 Thread Richard Lynch
On Mon, May 28, 2007 10:30 pm, Daniel Kasak wrote: > Hi all. > > I'm streaming a file ( location of which is to be hidden from clients, > hence the need to stream ). Basically I'm doing: Actually, you're forcing a download, rather than streaming it... > session_start(); > // some authentication s

Re: [PHP] Streaming download to IE doesn't work

2007-05-29 Thread Daniel Kasak
On Tue, 2007-05-29 at 13:52 +0200, Jochem Maas wrote: > Daniel Kasak wrote: > > Hi all. > > > > > > > Who knows WTF is wrong and how I can work around it? > > without getting into the holywar of download headers, > here is one mans's take/solution: > > http://richardlynch.blogspot.com/20

Re: [PHP] Streaming download to IE doesn't work

2007-05-29 Thread Jochem Maas
Daniel Kasak wrote: > Hi all. > > Who knows WTF is wrong and how I can work around it? without getting into the holywar of download headers, here is one mans's take/solution: http://richardlynch.blogspot.com/2006_06_01_archive.html it should contain enough to help you out. PS. you might

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 12:40 pm, J J said: > I have a case where video files (mov, flv, etc) have > been stored in a MySQL database as blobs. Doc: Don't do that. > I'm loading them into a flash video player and > everything works fine except it takes longer it seems > and it doesn't allow streami

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-16 Thread Drewcore
i would approach this from another angle... why not store the videos as regular files on your server, then store the filenames as varchar (or something similar - whatever suits you best) on your database. then you can just pull up the filename from the db, and then load it the old fashioned way...

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-16 Thread Ryan A
On 4/17/2005 2:08:43 AM, Chris Boget ([EMAIL PROTECTED]) wrote: > > If I make one pass and get 1mb of the blob...the > > > browser is simply going to load that 1mb only, right? > > > How do I keep looping and refreshing the users > > > browser, or in this case, flash player? > > > Thanks for a

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-16 Thread Chris Boget
> If I make one pass and get 1mb of the blob...the > browser is simply going to load that 1mb only, right? > How do I keep looping and refreshing the users > browser, or in this case, flash player? > Thanks for any ideas! Look into flush(); thnx, Chris -- PHP General Mailing List (http://www.p

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-16 Thread J J
Hmmm... not sure how this is done. I see someone added an example that they use substring to load 10mb of data at a time from the blob. The part I don't understand is how they loop the statements and continue to stream data to the user. If I make one pass and get 1mb of the blob...the browser is

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-15 Thread Marek Kilimajer
J J wrote: I have a case where video files (mov, flv, etc) have been stored in a MySQL database as blobs. I'm loading them into a flash video player and everything works fine except it takes longer it seems and it doesn't allow streaming the actual video. If I load the same videos with a direct lin

Re: [PHP] Streaming

2004-06-28 Thread Curt Zirzow
* Thus wrote Justin Patrin: > This wasn't really a reply to me but > > On Mon, 28 Jun 2004 09:20:14 -0700 (PDT), Matthew Sims > <[EMAIL PROTECTED]> wrote: > > > > > The PUSH thing you're referring to? Are you talking about the PSH flag in > > TCP? PUSH is a transport-layer protocal. HTTP onl

Re: [PHP] Streaming

2004-06-28 Thread Justin Patrin
This wasn't really a reply to me but On Mon, 28 Jun 2004 09:20:14 -0700 (PDT), Matthew Sims <[EMAIL PROTECTED]> wrote: > > > On Fri, 25 Jun 2004 09:07:16 -0500, Stephen Craton > > <[EMAIL PROTECTED]> wrote: > >> > >> What I'm basically trying to do is make the database display out the > >> in

Re: [PHP] Streaming

2004-06-28 Thread Matthew Sims
> On Fri, 25 Jun 2004 09:07:16 -0500, Stephen Craton > <[EMAIL PROTECTED]> wrote: >> >> What I'm basically trying to do is make the database display out the >> information from it's tables as soon as it possibly can without the need >> for >> refreshing. For example: >> >> Someone enters in some te

Re: [PHP] Streaming

2004-06-28 Thread Justin Patrin
all the help! > > Thanks, > Stephen Craton > http://www.melchior.us > > > > -Original Message----- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 12:53 AM > To: PHP List > Subject: Re: [PHP] Streaming > > * Thus wrote Stephen Cra

RE: [PHP] Streaming

2004-06-25 Thread Stephen Craton
s it and how do you utilize it? Thanks for all the help! Thanks, Stephen Craton http://www.melchior.us -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 12:53 AM To: PHP List Subject: Re: [PHP] Streaming * Thus wrote Stephen Craton: > So my ques

Re: [PHP] Streaming

2004-06-24 Thread Curt Zirzow
* Thus wrote Stephen Craton: > So my question is, does anyone know how the phpOpenChat system works? Can > anyone provide some insight into the world of "streaming" and avoiding the > refresh game? "streaming" It is very unclear how you mean streaming, if you're talking about a HTTP push method,

Re: [PHP] Streaming

2004-06-24 Thread His Dudeness
> Thanks for the information. I've been using the little iframe trick right > now, but this link you sent me may be different. I'm going to read here > soon, but just wanted to reply for the heck of it. The iframe trick, the way > I'm doing it, still requires a refresh and everything, so it's not e

RE: [PHP] Streaming

2004-06-24 Thread Stephen Craton
t's not exactly what I'm looking for. Thanks for the replies! Thanks, Stephen Craton http://www.melchior.us -Original Message- From: His Dudeness [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 11:48 PM To: Stephen Craton Cc: PHP List Subject: Re: [PHP] Streaming [sni

Re: [PHP] Streaming

2004-06-24 Thread His Dudeness
[snip] I was also thinking of Javascript like you said, but again, I came back to refreshing and then I can to XML HTTP Request but it's not supported well with browsers. Any help here would be appreciated... [/snip] As far as javascript and XML HTTP Requests, you could try the hidden iframe trick

RE: [PHP] Streaming

2004-06-24 Thread Stephen Craton
- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 5:28 PM To: Stephen Craton Cc: PHP List Subject: Re: [PHP] Streaming It will use up CPU time and bandwidth, yes. It should take less bandwidth than the "refresh constantly" version, but only if you code it rig

Re: [PHP] Streaming

2004-06-24 Thread Justin Patrin
Message- > From: Justin Patrin [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 24, 2004 5:01 PM > To: Stephen Craton > Cc: PHP List > Subject: Re: [PHP] Streaming > > Your script is ending, so the page ends. PHP (HTTP) isn't really supposed to > do "streami

RE: [PHP] Streaming

2004-06-24 Thread Stephen Craton
ephen Craton http://www.melchior.us -Original Message- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 5:01 PM To: Stephen Craton Cc: PHP List Subject: Re: [PHP] Streaming Your script is ending, so the page ends. PHP (HTTP) isn't really supposed to do "

Re: [PHP] Streaming

2004-06-24 Thread Justin Patrin
se { > $message = $db->Record["text"]; > } > $message = str_replace($emotes, $images, $message); > echo $message."\n"; > flush(); > endwhile; > > It displays just fine if you refresh, but unless you refr

RE: [PHP] Streaming

2004-06-24 Thread Stephen Craton
displays just fine if you refresh, but unless you refresh, you don't see any new data. Any ideas? Thanks, Stephen Craton http://www.melchior.us -Original Message----- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 4:47 PM To: Stephen Craton Cc: PHP

Re: [PHP] Streaming

2004-06-24 Thread Justin Patrin
just put the ob_end_clean() at > the opening the page I want to stream and then put flush() at the end? > > Thanks, > Stephen Craton > http://www.melchior.us > > > > -Original Message- > From: svk [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 24, 2004 4:25 P

RE: [PHP] Streaming

2004-06-24 Thread Stephen Craton
To: [EMAIL PROTECTED] Subject: Re: [PHP] Streaming On Thu, 2004-06-24 at 16:41, Stephenpp To use "streaming", you have to : Turn off output buffering: ob_end_clean() and flush the output has it comes : flush() It is useful to note that : "Some versions of Microsoft Internet Exp

Re: [PHP] Streaming

2004-06-24 Thread svk
On Thu, 2004-06-24 at 16:41, Stephenpp To use "streaming", you have to : Turn off output buffering: ob_end_clean() and flush the output has it comes : flush() It is useful to note that : "Some versions of Microsoft Internet Explorer will only start to display the page after they have received 25

Re: [PHP] Streaming audio

2002-11-27 Thread olinux
Not PHP, but here's a solution I use for streaming WMA files on apache server. You'll need 3 files audiofile.htm audiofile.wax audiofile.wma [audiofile.htm] Audio Player