Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Crontab

Featured Replies

Posté(e)

Bonjour,

je souhaite utiliser crontab en le configurant a partir d'un formulaire php...

J'ai un script qui permet de faire une sauvegarde de ma base SQL qui marche tres bien si je fais un crontab -e et rentre la tache manuellement..

Mais je veux que ca soit l'utilisateur qui dise quand il veut la tache et que le crontab se configure 'automatiquement'

donc je recupere les infos entrer dans le formulaire et je fais un fwrite en php...

"seul" probleme, il ne veut pas me faire un fopen...

ma fonction fopen est : $fichierOuvert=fopen("/var/spool/cron/crontabs/www-data","a");

et l'erreur est : Warning: fopen(/var/spool/cron/crontabs/www-data): failed to open stream: Permission denied in...

je pensais que c'etait un probleme de droit donc j'ai fais un chmod 777 sur www-data mais l'erreur est toujours la..

Comment puis je faire ?

Merci d'avance

  • 2 semaines après...
Posté(e)

c'est apache qui exécute ce script, donc il faut qu'il y ait les droits d'accéder et de modifier ce fichier... non?

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.