How can I use the COM components in php?

Answer Posted / pankajbisane

Use following code:

<?php

$objCom = new COM(“AddNumber.math”);
$result = $objCom ->AddTwoNum(2,2);
echo $result;

?>

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between GET and POST methods in form submitting?

570


What are different types of runtime errors in php?

551


Explain the difference between session and cookies in php?

514


What are the benefits of composer?

537


How to join multiple strings into a single string?

530






How many types of functions are there in php?

602


How to access a global variable inside a function?

538


How to stop the execution of php script?

533


write a note on Testing the web site

1422


What is php artisan tinker?

509


What is curl php?

533


What is a query in a database?

546


What is alias in php?

555


What are the different filter functions used to filter a variable?

535


What is meant by MIME?

637