For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > February 2005 > playing sounds with php?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author playing sounds with php?
Timo Jattu

2005-01-24, 8:55 pm

Hi - I where looking after a metod to play a sertain sound when an
predefined time has passed - something like this..

The page loads -> the user presses a button and a sequence like this is
run..

first 29 sec. just numbers showint the sec
then at 30 sec a wave file is played..
some more time
another wave file is played..

Anyone know how to do this ?

--
Best regards / Venligst
Timo Jattu.

WWW.DEEPERDIVING.NET - Spearfishing - Freediving - Scubadiving - Uw-rugby -
Finswimming - Photo - Reviews - Classified and more..


Colin McKinnon

2005-01-25, 8:55 am

Timo Jattu wrote:

> Hi - I where looking after a metod to play a sertain sound when an
> predefined time has passed - something like this..
>

<snip>

Use javascript. You could hack it in PHP but it's such a bad idea.

C.
Andy Hassall

2005-01-25, 8:56 pm

On Tue, 25 Jan 2005 01:20:27 +0100, "Timo Jattu" <notreal@alkjaliehfaleih.xx>
wrote:

>Hi - I where looking after a metod to play a sertain sound when an
>predefined time has passed - something like this..
>
>The page loads -> the user presses a button and a sequence like this is
>run..
>
> first 29 sec. just numbers showint the sec
>then at 30 sec a wave file is played..
>some more time
>another wave file is played..
>
>Anyone know how to do this ?


PHP can play sounds on the server, since that's where it runs. Presumably this
is not what you want...

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
mossy

2005-02-18, 3:56 pm

Timo Jattu wrote:
> Hi - I where looking after a metod to play a sertain sound when an
> predefined time has passed - something like this..
>
> The page loads -> the user presses a button and a sequence like this is
> run..
>
> first 29 sec. just numbers showint the sec
> then at 30 sec a wave file is played..
> some more time
> another wave file is played..
>
> Anyone know how to do this ?
>

You could use the sleep() function to wait a specified number of
seconds, but as he said it would be better to use javascript.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com