note 41270 added to ref.com

From: Date: Mon, 05 Apr 2004 09:31:14 +0000
Subject: note 41270 added to ref.com
Groups: php.notes 
Request: Send a blank email to php-notes+get-67644@lists.php.net to get a copy of this message
Simple example for creating your own dll's which can be called as COM objects in PHP: First create your ActiveX dll (Visual Basic): Name your project as "foo" and class as "bar". '---start VB code--- Public Function hello() As String hello = "Hello World!" End Function '---end VB code--- Then make the dll and register it with regsvr32.exe Now create your PHP script: <?php $obj = new COM("foo.bar"); $output=$obj->hello(); // Call the "hello()" method echo $output; // Displays Hello World! (so this comes from the dll!) ?> ---- Manual Page -- http://www.php.net/manual/en/ref.com.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41270 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41270&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41270&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67644) next »