Je dois réaliser un script en php pour le moment test_php.php dont voici le contenu:
#!/usr/local/apache/bin/php --php-ini=/etc/config/php.ini
<?php //echo "coucou"; $to = 'dadateite@gmail.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?>
Ce code fonctionne en php.
Je souhaite l'éxécuter ac cron alors avant je voulais tester et quand je test avec la commande : /usr/local/apache/bin/php -f test_php.php
J'ai l'erreur : sh: -t: command not found
Quelqu'un pour m'aider?
Merci d'avance.














