note 78113 modified in ref.com by danbrown

From: Date: Mon, 21 Dec 2009 17:03:21 +0000
Subject: note 78113 modified in ref.com by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164195@lists.php.net to get a copy of this message
The only way I've been able to call Win32 API functions with PHP5 has been through COM and DynamicWrapper. Here's an example to play a beep sound with your computer speaker: <?php $com = new COM("DynamicWrapper"); $com->Register("KERNEL32.DLL", "Beep", "i=ll", "f=s", "r=l"); $com->Beep(5000, 100); ?> --was-- The only way I've been able to call Win32 API functions with PHP5 has been through COM and DynamicWrapper. Get DynamicWrapper at: http://ourworld.compuserve.com/homepages/Guenter_Born/ WSHBazaar/WSHDynaCall.htm (remove new line) Here's an example to play a beep sound with your computer speaker: <?php $com = new COM("DynamicWrapper"); $com->Register("KERNEL32.DLL", "Beep", "i=ll", "f=s", "r=l"); $com->Beep(5000, 100); ?> http://php.net/manual/en/ref.com.php

« previous php.notes (#164195) next »