Jump to content

shell_exec on windows


vmalli

Recommended Posts

Hello!

 

I am working on a script for a friend. He has an .exe on his server which he wants to be run by his web server (apache/2.2.9 php/5.2.10)

 

I have written all of the script and it works fine, but I am stuck on the shell exec part. The code seems to just skip the line.

 

Basically I want to execute the file with two arguments (from php)

C:\useradd\add.exe "$username" "$password"

 

But I just can't seem to format it right for shell_exec to work.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/180996-shell_exec-on-windows/
Share on other sites

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.