note 102395 deleted from function.system by cmb
| From: | cmb@php.net | Date: | Sun, 08 Dec 2019 11:50:58 +0000 |
| Subject: | note 102395 deleted from function.system by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213493@lists.php.net to get a copy of this message | ||
Note Submitter: daveloop
----
I was trying to get the server-side to beep in windows 7. I finally found something that would work
without creating my own EXE.
Create a batch file with at the CMD prompt type:
echo @echo (Alt-7)>beep.bat
Then execute it in PHP with:
exec ('start /MIN c:\your_path_here\beep.bat');
NOTE: The only drawback I can find is that a cmd.exe does visually flash on the system (which is why
I used the /MIN to ensure it only goes to the taskbar). Not really sure why I don't like that,
but it was a side effect that I wasn't looking for.