Hallo,
Cool, vielen Dank… zu einfach
… hab jetzt von nemf
ruend gehört, dass man auch php -f nehmen könnte…
Die Manpage sagt dazu:
You can parse and execute files by using parameter -f followed by the
name of the file to be executed.
Using parameter -r you can directly execute PHP code simply as you
would do inside a .php file when using the eval() function.
If none of -r or -f is present but a single parameter is given then
this parameter is taken as the filename to parse and execute (same as
with -f). If no parameter is present then the standard input is read
and executed.
dein Freund hat also nicht ganz unrechter, vielleicht sogar ein bisschen mehr Recht als ich
.
Grüße,
Moritz