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
The user PHP runs as on your windows box doesn't have access to either the DLL or the locations that the DLL is trying to access. In a windows environment it is probably your IUSR_<MACHINENAME> that needs read access to the files. Make sure that it has read access to the directory it's stored in as well as the DLL itself. Short Answer: Permissions Problem