I can create phonegap project on terminal when use phonegap create command but when i use php script to create phonegap project it is not creating not even display any error message or warning.
PHP :-
<?php
try {
$command = 'phonegap create hello com.example.hello HelloWorld';
exec($command);
}
catch(Exception $ex) {
echo $ex->getMessage();
}
?>
Note: Above Problem is not about how to print exception or warning it is regarding to create phonegap project through php script