...

View Full Version : Com and PHP



subangini
05-29-2007, 11:58 AM
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

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

subangini
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum