Win7web cannot execute exec

Source: Internet
Author: User
The win7web client cannot execute exec and wants to open a local program through the page, for example, open a local txt file.
Exec ('d: \ test.txt ');
Write the php file and execute it in cmd to open it. But the process of notepad.exe is displayed in the process.
Find a solution.
System: win7
Server: wampserver
User: Administrator
Server and program disk: drive C

Don't say anything about exec or anything. I use it on my own computer and don't have to worry about security issues. Thank you.
I checked some information and added the IUSR permission in cmd. However, my add button is grayed out. No ..
In the service, select the option wampapache that interacts with the desktop. It does not work either.
Php Security mode is disabled.


Reply to discussion (solution)

No solution!
Exec can only execute programs without user interaction
You can see the notepad.exe process, which indicates that it is indeed executed, but you cannot see the notepad.exe interface, because it runs in the background
Since you don't see the interface, you can't perform the operation (you don't even have a chance to exit)

Besides, php runs on the server. even if the page is displayed on the server, how do you operate it? Assume that your server is in the United States.

No solution!
Exec can only execute programs without user interaction
You can see the notepad.exe process, which indicates that it is indeed executed, but you cannot see the notepad.exe interface, because it runs in the background
Since you don't see the interface, you can't perform the operation (you don't even have a chance to exit)

Besides, php runs on the server. even if the page is displayed on the server, how do you operate it? Assume that your server is in the United States.


I said it was local. It is not unsolvable. My code is okay on the company computer. But not at home ..

You can run apache without the apache service. Then we can achieve the effect.

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.