Jump to content

Exec function won't work for me unless i use PhpED


mu123guy

Recommended Posts

hi guys. i'm new to php and Apache and i have a problem.

i'm trying to execute an exe file that i have in my folder, and the code i use is

echo exec('test.exe');

i have tried using this with and without the ".exe." and still no luck. i have also tried using a different path

echo exec('C:\Windows\System32\mspaint');

now these codes work when i run them from my php editor(PhpED), bun when i try running it on Apache it gets stuck. (just shows the web page as loading with no end.

please help me out. i'm guessing it something with security.

also if there is any other code i can use please let me know (i have also tried using system)

Link to comment
Share on other sites

Hi. thank you for the response. is there any way to make ApacheĀ  it allow it? or any other function that can do so? what my problem is, is i have installed a certain program that i want to be able to run by clicking on a button on a website. any way i could do that?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.