An exception is returned when the popen execution program is called.

Source: Internet
Author: User
When the Popener execution program is called, an error occurs when the server executes popen('startxxx.exe ', 'r'); the following error occurs: Warning: popen(startxxx.exe, r) [function. popen]: NoerrorinE: \ xxx
The server executes popen ('Start xxx.exe ', 'r ');
Returned error:
Warning: popen (start xxx.exe, r) [function. popen]: No error in E: \ xxx \ test. php on line 4

I checked a lot of information and did not solve the problem. I look forward to the answers from Daniel.

I can debug this function on the development computer and there is a problem deploying it on the server.
The development computer is: XP + Apache + PHP
The server is: winserver2003 + IIS + PHP



------ Solution --------------------
The default permissions of IIS are insufficient. you can change to scripts and executable files, and choose iis> Site Properties> Home Directory> execution permission.
------ Solution --------------------
Paste all the code. $ file = popen ("/bin/ls", "r ");

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.