matid
January 23rd, 2006, 09:21 PM
Hi, can anyone help me enabling php to play music on the server?
I tried:
<?php
system( '/usr/bin/play file.mp3' );
?>
But it doesn't work. It just displays nothing.
On the other hand, when I run this file with php cli it's playing ok.
I think it's all about permissions, but I added www-data to audio group and it's still not working.
Do you have any ideas?
I tried:
<?php
system( '/usr/bin/play file.mp3' );
?>
But it doesn't work. It just displays nothing.
On the other hand, when I run this file with php cli it's playing ok.
I think it's all about permissions, but I added www-data to audio group and it's still not working.
Do you have any ideas?