Re: Run a php script as a separate thread/process
| From: | Petar Nedyalkov | Date: | Tue, 11 Oct 2005 13:50:53 +0000 |
| Subject: | Re: Run a php script as a separate thread/process | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223894@lists.php.net to get a copy of this message | ||
On Tuesday 11 October 2005 14:12, Tommy Jensehaugen wrote:
> Hi,
> Anyone knows how to start a php script as a separate thread/process from
> another php script?
Yes, you can check: http://bg.php.net/manual/en/ref.exec.php for
details.
>
> example.php:
>
> <?php
> some logic
>
>
> execute('separate_script.php');
> more logic
>
>
> ?>
>
> The reason why I want to do this is because separate_script.php has to be
> fully executed even if the request for example.php is stopped in the middle
> of "more logic".
> I am using PHP Version 4.3.11.
>
> Thank you very much for your help..
>
> Cheers,
> Tommy
--
Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)
PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]