I made it almost like you but i don't use make install, just copy compiled file
Quote:cp modules/pcntl.so /usr/lib/php5/20060613+lfs
And it's working, i can throw this process into background.
Of course i run my application from cron, it's not accessible via browser.
.dll - I still think in 2k3 server
I have trouble with getting output from exec...
That's why i use shell_exec instead exec... but shell_exec don't seem working ass good as exec. I ran few tests and shell_exec was stopped... all tests with just exec completed successful.
The trouble is i'm getting only "last" row of output...
I had try:
Code:
$output = exec($cmd, $output, $return);
foreach ($output as $line) {
mail('admin@xxx.xxx', "test$line", "test$line tes");
}
I don't get any e-mails...
But $output contain last row... i was thinking it's an array that's why i use foreach... it's console so for test purpose i wan't debug it for my e-mail.... Later i will use print_r to ob_buffer and e-mail to see what's going on....
Except getting status looks working
Tell me is there any possible for fetching that output in same look as in real console ?
I need that output for debugging.
If it's more complex maybe faster will be throw output to file
Code:
comand >random_file_name.txt
And then using file_get_contents(random_file_name.txt) take output
Maybe it will be faster
What do You think about it ?
Regards