Bonjour,
comment redémarrer apache2.2 avec php lorsqu'on travail sous windows avec wamp ?

J'ai testé ceci mais rien n'y fait:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
<?php
exec('C:\wamp\bin\apache\apache2.2.8\bin\httpd.exe -k restart') or die('Erreur Apache, vérifiez les logs!!');
echo 'Apache redémarré avec succès.';
?>