Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Com and PHP (http://forums.winamp.com/showthread.php?t=271744)

randata 25th May 2007 13:58

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

Joel 25th May 2007 14:00

Wrong forum
Try general discussions

randata 25th May 2007 14:26

Hi,

I have created a dll file in Visual basic and want to call that file in php.

When i run my php code in command prompt its working but thru the webpage it's not working.

I cant understand what the reason is...

Afrow UK 25th May 2007 16:03

Is this related to NSIS then?
If not, you should probably try codingforums.com

Stu


All times are GMT. The time now is 04:40.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.