How Can I Ring the Bell on the Server From PHP?

When you run a command or script on the command line terminal in Linux, you may want to have an alert -- a "bell" -- sound a tone that lets you know when the operation completes. If your script is written in PHP, add a command that causes the computer to sound a tone when the PHP script completes its execution.

Instructions

    • 1

      Open your PHP file.

    • 2

      Scroll to the end of the file, right before the closing PHP bracket "?>."

    • 3

      Type "system('echo -e "\a"');" into the PHP file. When the file is executed, it rings the Linux bell when executed from the Linux terminal.

Related Searches:

References

Comments

Related Ads

Featured