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)

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.