如何从PHP运行Ant

I am executing a batch file which runs ant commands. The batch file is executed through PHP and I am using XAMPP. Although when I double click the batch file it works when I execute it via PHP it simply doesn't recognize the ant component.

the batch file essentially looks as following

cd C:\Users\Me\File
ant release

and I am running it with PHP function exec()

Can someone tell me the problem?

Your problem might be this path:

cd C:\Users\Me\File

PHP process most likely doesn't have the permission to access your user folder.