Hi.
Is there a way to use streams such that I can have my source stream as
"bzip2 . decompress : / / data . bz2" (had to add spaces as I think
this is causing a bounce on the lists for php) and my output stream as
"data", without having to read from one and write to the other in a
loop?
Essential
Hello there,
I wonder how I can stream MP3/OGG files with PHP? I'm running UniServer
on a Windows machine, if that helps.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
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
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
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
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:
---
session_start();
// some authentication stuff and figuring out the path goes here
// ...
// ...
$source = "/accounts_reports/" . $_GET['id'] . ".bin";
header( "Cont
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
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...
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
> 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
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
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
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 link to the
* 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
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
> 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
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
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
* 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,
> 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
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
[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
-
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
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
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 "
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
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
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
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
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
I was browsing the net and I found a PHP chat script that claimed that it
does not refresh, rather it has "streaming text". This got my interest and
was wondering how the script did it. I downloaded it's source code but
couldn't find anything useful in it, very hard to read in my opinion. I did
a s
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