How to run ansible command in php code but it not working

Hi All !
I’m build web ui view and i want to running ansible command with php . for example:

<?php $output = system("ansible host -m ping"); ?>

But it not working, Please help me. Thanks !

What’s happening when you do that? What happens if you use a different Shell command? This might end up being more of a php programming question than an ansible question.

-Toshio