Subject | Re: [firebird-support] fail to exec an SQL script thru PHP |
---|---|
Author | Milan Babuskov |
Post date | 2004-02-03T14:46:18Z |
Peppe Polpo wrote:
"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. "
This means that you can't just exec() and leave it be. That's why Almond
recommended that you redirect output to /dev/null.
All this has got nothing to do with Firebird, perhaps it would be better
if you ask these kind of questions at firebird-php group.
--
Milan Babuskov
http://fbexport.sourceforge.net
> However, when I launch the script from a browser, the normal programFrom PHP manual for exec():
> flow stops at the line
>
> exec("/root/test/start.sh")
>
> I mean that the code that follows that line is never executed.
"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. "
This means that you can't just exec() and leave it be. That's why Almond
recommended that you redirect output to /dev/null.
All this has got nothing to do with Firebird, perhaps it would be better
if you ask these kind of questions at firebird-php group.
--
Milan Babuskov
http://fbexport.sourceforge.net