How does php call an external exe program?

Source: Internet
Author: User
Php calls the external exe program. I now use php to call the external exe program & nbsp; or the. bat file does not respond, and I do not know what the problem is & lt ;? Php & nbsp; $ flv_cmd = "D :\\ wamp \ www \ infoLib \ rerere \ PNCC.exe"; exec ($ flv_cmd );? & Gt; php calls an external exe program
I am using php to call an external exe program or a. bat file. I don't know what the problem is.

$ Flv_cmd = "D :\\ wamp \ www \ infoLib \ rerere \ PNCC.exe ";
Exec ($ flv_cmd );
?>

For example, I have tried using system to solve the problem.
------ Solution --------------------
$ Dir = dirname (_ FILE __);
System ($ dir. "/test.exe ");

Test.exe and file are at the same level. for different levels, add the Directory
Just now I wrote a simple test.exe output in my notebook. the test has returned results. please try again.
------ Solution --------------------
First, you need to test an exe with returned information. I don't know what pncc is. you can test it with dir or something like that.

In addition, some external files that need to call the ownership of the system cannot be run. do you think it is feasible to get a command in php to change the registry?

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.