View Full Version : Com and PHP

05-29-2007, 11:58 AM

I created a dll file in Visual Basic
Public function news()
dim a,b as Integer
msgbox a+b
end function

I am trying to call this dll in php thru the following code
$obj=new COM("test.trial");
echo "hi";


echo $output;


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.


05-29-2007, 12:53 PM
Does the dll file have the necessary permissions to be executed by the anonymous web user account?

05-31-2007, 01:09 PM
I have a visual basic file that migrate data from oracle to mysql. I saved this file as .dll.

when i call this file in command prompt its working fine when i call it from we page i get following error

Error Ocurred: [Microsoft][ODBC Driver Manager] Data source name not
found and no default driver specified

How to check the access permission for dll.