it will NOT ever work. realize - if you'll have apache web server, and php application it beeps everytime page loaded, what a feel... it's not possible to execute this kind of thing on 'remote' server.
you should only did local beep, in your browser using javascript - and Bell = ctrl-g