Prozess auf dem Server starten?

Alles, was PHP betrifft, kann hier besprochen werden.

Prozess auf dem Server starten?

Postby jakimo72 » 12. February 2005 22:28

Gibt es eine Funktion so wie
z.B. exec(), nur soll das Script
nicht darauf warten, bis der Befehl zuende
ausgeführt wurde.

Der Befehl, den ich mit exec() anstarten möchte
dauert ziemlich lange, der Client muss aber nur wissen. dass
der Befehl erfolgreich angestartet wurde,
ansonsten ist keine weitere Rückmeldung erforderlich.
User avatar
jakimo72
 
Posts: 151
Joined: 07. February 2005 13:25
Location: Hamburg-Barmbek

Postby Wiedmann » 12. February 2005 22:53

http://de.php.net/manual/en/function.exec.php
Note: If you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to PHP

Who is online

Users browsing this forum: No registered users and 20 guests