Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 807773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:27:20+00:00 2026-05-15T00:27:20+00:00

I want to execute a .exe file on my Apache server using a php

  • 0

I want to execute a .exe file on my Apache server using a php script.
the procedure is as follow:

  1. user comes, fills a html form

  2. it goses to a php script

  3. php script executes the name.exe file

  4. php prints the output of the name.exe file on the page.

I execute the name.exe normally from windows like this:

run--> cmd--> D:\name [command]

the name.exe needs to communicate with other files like libraries in the same directory.

the complete comand in cmd at windows is like this:

D:\name library.dll [input from user]

then program executes and prints some results in cmd window.

I actually want to run this program on my server form my clients.
I don’t know how, but I now there is a way to do this.

Another related question, is there any shell that I can install on Linux server and execute name.exe in it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:27:21+00:00Added an answer on May 15, 2026 at 12:27 am

    Please rethink your solution as this will likely create more problems (particularly security issues) than it solves. By having a PHP script execute your program you run the danger of a user entering the following into your form:

    John Doe; rm \windows\*
    

    or

    John Doe; rm d:\name\*
    

    You want to limit user input to a very controlled subset so that you won’t get malicious command injection.

    PHP does provide an exec() but be very careful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to execute this command D:/Projects/GDAL/ogr2ogr.exe -f MapInfo File D:/Projects/GDAL/r/output_test.tab PG:host=localhost user=postgres password=123456
I want to execute an exe file which is written in VC++.net 2008 in
How can I execute an external program like an exe file? I want to
I want to execute a program which takes in 1 text file(say like Text.exe),
I have asp.net generated html code. I want execute jQuery click function when user
i have a web application in which i want to execute an .exe file.
Dear all I want to execute a EXE file in Java, but I was
I have the following script that I want the production guys to execute using
I want to execute an application (executable ending with an .exe extension ) that
I want to hide the tool I used to create an .exe file. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.