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

Posted by alex bazan on 10/22/66 11:26

En/na Andy Hassall ha escrit:
> On Mon, 12 Sep 2005 11:05:39 +0200, alex bazan <me@privacy.net> wrote:
>
>>If i point the mp3 directly i have no problems, but with the php script
>>songs stop playing when after a while (always at the same length)...
>
>
> How is the player reading the file?
>
> If it is streaming it, i.e. only reading just about as fast as it's playing
> give or take a buffer size, it'll exceed PHP's maximum execution time, and PHP
> will drop the connection.
>

Yes, it's streaming... when i read that i said, bingo!
but i've raised the max_execution_time to 300s in php.ini and also with
the ini_set function, and i've also tried raising it with
set_time_limit(), but the song always stops at the same point at 1:25
(aprox).... (thats less than 90 seconds!)

>
> You would probably be better off using an Alias in Apache.

for some reasons, i can't do that.

 

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

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