WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   php script per shell (http://www.wcm.at/forum/showthread.php?t=182252)

fakeX 03.01.2006 22:32

php script per shell
 
hallo,

man kann ja mittels php shell-scripte ausführen.

aber ist es auch umgekehrt möglich???

iG0r 03.01.2006 23:13

ja,

http://at2.php.net/manual/de/function.exec.php

Who-T 04.01.2006 06:43

-q flag fuert php auf der commandline aus. du brauchst das php4-cli package dafuer (so heissts unter debian)

Code:

$> echo '<? echo "hello world\n" ?>' >> test.php

$> php -q test.php



Alle Zeitangaben in WEZ +2. Es ist jetzt 01:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag