You are here: Re: fpassthru and mp3 player « PHP Programming Language « IT news, forums, messages
Re: fpassthru and mp3 player

Posted by Bent Stigsen on 11/11/82 11:26

alex bazan wrote:
> En/na Andy Hassall ha escrit:
>
>> On Mon, 12 Sep 2005 12:46:06 +0200, alex bazan <me@privacy.net> wrote:
>
>
>> OK, so you need to find a way of reproducing that behaviour in a way
>> where you
>> can see what's happening right at the end.
>>
>> Turn on log_errors in PHP in case it's producing a PHP error at the
>> end - you
>> can't see the error text since the player will be receiving it, but if
>> you turn
>> on log_errors it'll also log it to a file so you can check for it.
>
>
> i've been already 'tailing' them on the console... no errors dumped to
> the log file though...
>
> in case you wonder about files being coprrupted, i have the same
> behaviour with all files, and the files are correctly reproduced in my
> desktop player.

An additional thing when streaming, instead of using fpassthru, use
fread to read the file in chunks. Look what PHP's output buffer is set
to, reading less would probably be pointless, unless you do a explicit
flush.

[snip]

/Bent

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация