danmero Posted December 6, 2007 Share Posted December 6, 2007 First, I'm a newbie on php... and this is my first post/question on the forum. I need to send a string to a device. In Bourne Shell the code is: echo "C+D+E+F+G+A+B" > /dev/speaker I need the equivalent for PHP. Thanks in advanced for your answer. PHP 5.2.5 (cgi-fcgi) (built: Nov 17 2007 20:18:58) & Zend Engine v2.2.0 Quote Link to comment Share on other sites More sharing options...
trq Posted December 6, 2007 Share Posted December 6, 2007 <?php file_put_contents('/dev/speaker','C+D+E+F+G+A+B'); ?> Quote Link to comment Share on other sites More sharing options...
danmero Posted December 6, 2007 Author Share Posted December 6, 2007 Thanks, appreciate your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.