Comment faire marcher une tâche cron PHP ?

  • Mettre #!/usr/local/bin/php en début de fichier php (avant le < ?php)
  • Dans le panneau DirectAdmin, aller sur Tache Cron (Options Avancées)
  • mettre /usr/local/bin/php /home/votre login/domains/votre domaine/public_html/votre fichier cron.php
Was dit antwoord nuttig? 31 gebruikers vonden dit artikel nuttig (150 Stemmen)