| 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
| |
|
| 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.
|
|
|
|