Subject Re: [firebird-support] fail to exec an SQL script thru PHP
Author Milan Babuskov
Peppe Polpo wrote:
> However, when I launch the script from a browser, the normal program
> flow stops at the line
>
> exec("/root/test/start.sh")
>
> I mean that the code that follows that line is never executed.

From PHP manual for exec():

"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