Re: daemonized php
| From: | Dan Anderson | Date: | Mon, 07 Jul 2003 12:47:01 +0000 |
| Subject: | Re: daemonized php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154178@lists.php.net to get a copy of this message | ||
start your PHP files with:
#! /usr/bin/php
Replace /usr/bin/php with the path to php. You will need to make the
file executable by chmod ing it.
(try:
$ chmod +x ./yourscript.php
)
As a side note, starting any text file with #! followed by the path to a
language interpreter, and chmoding the file so that it is executable
will allow you to send the rest of the file to the interpreter and run
it as a full fledged program.
-Dan
On Mon, 2003-07-07 at 08:41, Uros wrote:
> Hello!
>
> Can somebody give me any workable example how to run some script written in
> PHP in Unix console.
>
> I wan't to write some server aplication. So it has to be run in the
> backgroud.
>
>
> --
> Best regards,
> Uros
>