Com and PHP
Hi,
I created a dll file in Visual Basic
Public function news()
dim a,b as Integer
a=2
b=3
msgbox a+b
end function
I am trying to call this dll in php thru the following code
<html>
<body>
<?php
$obj=new COM("test.trial");
echo "hi";
$output=$obj->news();
echo $output;
?>
</body>
</html>
where test is the dll name and trial is the class name.
when i run this php file in command prompt like
c:\php>php.exe "c:\Inetupub\wwwroot\use.php"
its working
but the same code is not running in the web pages when i click button.
Can any 1 help me plsssss.
thanks