PHP quotes COM object example PHP references DLL method

Source: Internet
Author: User
PHP reference COM object example PHP reference DLL Method 1: compile and generate p_test.dll File 2: run at the registration prompt: regsvr32? P_test.dll 3: compile the php file. the code test. php4 is as follows: & lt ;? $ BnewCOM ("p_test.c_test"); $ a $ B-& gt; Test_Number (-454); echo? $ A; PHP reference COM object example PHP reference DLL method

I. Compile and generate the p_test.dll file

II. Registration

Run: regsvr32? P_test.dll

3. Compile the php file. the test. php4 code is as follows:

$ B = new COM ("p_test.c_test ");

$ A = $ B-> Test_Number (-454 );

Echo? $;

?>

1st floor zjsunshine

New COM ("p_test.c_test ");


. C_test?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.