bjr a tout le monde
j'essait d'execute cette commande ant debug qui marche tres bien sur cmd mais avec php elle marche pas du tt , elle me permet de genere l'apk pour un projet android avec apache ant

voici ma commande
Code : Sélectionner tout - Visualiser dans une fenêtre à part
cmd : ant debug -f C:\wamp\www\PFA1_HOTEL\build.xml
voici se que j'ai esseyé avec les fichier bat sans fichier bat avec system est exec ect ,,,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
//$command2 = 'ant clean -f C:\wamp\www\PFA1_HOTEL\build.xml'; 
//echo  shell_exec($command2);
 
//$command3 = 'ant debug -f C:\wamp\www\PFA1_HOTEL\build.xml'; 
//echo  shell_exec($command3);
 
//exec($command2,$output);
//$cmd = "c:/windows/system32/cmd.exe"; // path to cmd.exe
//$ouatput=shell_exec($cmd . "C:\wamp\www\xxx.bat");
//echo($ouatput);
 
shell_exec("C:\\xxx.bat");