Fri May 30, 2014 7:49 am
You can't, for security reasons.
PHP is running on the server side, jvascript (usually) on the clients side, If javascript could access files or even execute programs, it would open the door to everyone modify your system.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer