RE: [PHP-WIN] PHP & IIS system() a program in the forground
| From: | Mr. Adam ALLEN. | Date: | Sun, 20 May 2001 15:42:06 +0000 |
| Subject: | RE: [PHP-WIN] PHP & IIS system() a program in the forground | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-7767@lists.php.net to get a copy of this message | ||
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.
adam@dynamicinteraction.co.uk
http://www.dynamicinteraction.co.uk
> -----Original Message-----
> From: Root88 [mailto:root88@ice.org]
> Sent: Saturday, May 19, 2001 8:29 PM
> To: php-windows@lists.php.net
> 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?