Moin Moin,
Ich weiss zwar wie man unter win ein php-acript über die php.exe ausführt, allerdings hab ich keine ahnung davon wie es unter linux geht… kann mir bitte jemand sagen, wie ich unter linux ein php-script über die shell aufrufen kann? Falls es wichtig ist: Ich benutze Plesk 8.0
Gruß
Jan
Hi,
was spricht gegen
php foo.php
alternativ mit php4 statt php?
Grüße,
Moritz
Cool, vielen Dank… zu einfach
… hab jetzt von nemf ruend gehört, dass man auch php -f nehmen könnte…
Vielen Dank
Gruß
JAn
[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]
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