Lancer un script php a partire d'un terminal

moha013 Messages postés 16 Date d'inscription mardi 12 avril 2005 Statut Membre Dernière intervention 30 juillet 2007 - 26 avril 2005 à 17:16
cs_sjon Messages postés 861 Date d'inscription mardi 26 mars 2002 Statut Membre Dernière intervention 29 novembre 2006 - 26 avril 2005 à 23:15
bonjour

je cherche a savoir comment lancer un script php a partir d 'un terminal , la syntaxe qu'il faut.

merci d'avance

1 réponse

cs_sjon Messages postés 861 Date d'inscription mardi 26 mars 2002 Statut Membre Dernière intervention 29 novembre 2006 1
26 avril 2005 à 23:15
Sael og blesud

Alors en principe la syntaxe pour éxécuter un script php à partir d'un terminal c'est :

/usr/bin/php -f /home/toto/script.php

si php ne se situe pas là vous pouvez faire

type php

pour savoir où il est.

Autrement pour connaitre les options

/usr/bin/php --help

ou

man php

Sigurjon Birgir Sigurdsson aka Sjon

Si la réponse vous convient merci de l'accepter ...

Fra en skal en med eydarinnar ...
0
Rejoignez-nous