Joopi

Normale Version: PHP auf Konsole ausführen
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Es ist mögich, ein PHP-Script (oder eine PHP-Befehlszeile) auf der Konsole bzw. in einem Shellscript auszuführen.

Das ist der Inhalt des PHP-Scripts:

PHP-Code:
<?php echo "Hallo Welt auf der Konsole!\n"?>

Folgender Befehl auf der Konsole führt ein PHP-Script aus:

Code:
php hallo_welt_konsole.php

Das Ergebnis ist wie folgt (steht so im PHP-Script):

Zitat:Hallo Welt auf der Konsole!