UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > PHP Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-05-2007, 12:02
new member
 
Join Date: May 2007
Posts: 1
Default 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
Reply With Quote
  #2 (permalink)  
Old 09-06-2007, 06:07
Junior Member
 
Join Date: Jun 2007
Posts: 18
Default

hi,

Have you put this code on server for checking online. I want to check the button functionality online and error if any
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:36.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

knowledgebase articles

popular blog categories