I've searched high and low for an answer to this one. I hope someone can help.
I am calling the exec function from within a function that is registered as the shutdown function using register_shutdown_function(). The call looks something like this:
exec("ftp ftp.mysite.com < /home/httpd/html/somefile.txt");
The thing that's supposed to happen on this exec call doesn't happen, but other things that are supposed to happen in the registered shutdown function are happening just fine, so I know the shutdown function is actually getting called. This is the error I get in the error log: [notice] child pid ##### exit signal Segmentation fault (11).
But - here's the catch. This exec line runs perfectly if I call it from my PHP script directly, instead of from inside the registered shutdown function.
Any clues??
Thanks in advance,
sharry