Say I want to execute an ant command on a linux server using php on a website…
Can I do say, /home/user/apache-ant-1.8.2/bin/ant compile – where compile is the command?
Basically I need to start up a few things with ANT in a few different directories. I would like to do this from a php webpage, can shell_exec perform this?
Yes,
shell_execcan run any command (with appropriate permissions).