Re: when exec() call is done?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

On 30/11/2007, Foxydot Dragon <foxydot@xxxxxxxxx> wrote:
>
>
>
>
>
>
> hi all, new to the group...
>
>  I've got a script that is making a call to an external program via
>  exec(). (I can use another function, just had luck with this so far.)
>  I need to know when the process that I'm calling has completed, so I
>  can move on to the next step AFTER the files are finished creating. Is
>  there a simple way to learn this?

"exec" pause php until the program is finished, example

<?php
exec("foo");
echo "bar";
?>

"bar" won't be printed until foo execution end.

>
>
>
>
>
>
>  thanks,
>  fd
>
>                    

I hope this info be useful for you,

-- 
Best Regards

Cesar D. Rodas
http://www.cesarodas.com
http://www.thyphp.com
http://www.phpajax.org
Phone: +595-961-974165

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux