Are you making the system call as ("wavfile.wav"), you probably need to put
the name of a player

        system("d:\winnt\system32\sndrec32.exe wavfile.wav")

Sound recorder doesn't automatically play the sound, so you need to find
another program (maybe winamp automatically plays, I can't try it out
because my Soundcard has problems .) Don't use media player, it's a huge
program and would take too long and too many resources to load each time a
page runs.

The best way, is to make this a shortcut and then you can set it to run
hidden or minimized, then place the path of the shortcut in the system()
call i.e. system("d:\playsound.lnk").


Yours
Mr. Adam ALLEN.
[EMAIL PROTECTED]
http://www.dynamicinteraction.co.uk


> -----Original Message-----
> From: Root88 [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 19, 2001 8:29 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP & IIS system() a program in the forground
>
>
> I am running PHP under Windows 2000.  I want to play a .wav file on my
> machine when a certain page gets loaded. I am using the system()
> function. I
> can get my machine to run the program, but it runs in the background. I
> can't hear the .wav when it does that. Is there a way to run the
> program in
> the foreground?


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to