Files
varlog/_cache/articles/45ecbbd9-38ed-4ec4-88e4-9527307cf2a0.json
T
2026-05-15 10:37:48 +02:00

1 line
896 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"uuid":"45ecbbd9-38ed-4ec4-88e4-9527307cf2a0","slug":"utiliser-php-en-ligne-de-commande","title":"Utiliser PHP en ligne de commande","author":"cedric@abonnel.fr","published":true,"published_at":"2023-02-02 07:46:11","created_at":"2023-02-02 07:46:11","updated_at":"2023-02-02 07:46:11","revisions":[],"cover":"","files_meta":[],"external_links":[],"seo_title":"","seo_description":"","og_image":"","category":"Informatique","content":"# Utiliser PHP en ligne de commande\n\n![Nom de la section](dummy.png)\n\n## PHP\nLa commande PHP, une fois validée, attendra du code PHP. Il faudra indiquer la code de fin de fichier (EOF, <kbd>Ctrl</kbd> + <kbd>D</kbd>) pour que le code PHP sexécute.\n\n![](20220320-063404.png)\n\n## PHP -r\nOn peut utiliser l'option `-r`, qui execute le code PHP sans utiliser les tags `<? ... ?>`\n\n```\nphp -r 'echo date(\"c\");'\n```","featured":false,"tags":[]}