Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can set beep sound in php instead of error message?
I set beep sound in error when duplicate value enter in database.
Posted
Comments
W Balboos, GHB 13-Aug-14 8:34am    
PHP is server-side. If you cause it to beep on an error, if heard at all, it would annoy the people minding the server.

Instead, consider trapping the error and sending back to the client some value that triggers a beep on your particular O/S. For example, on old DOS system, Ctrl-G was a beep.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900