It may be that the system you are trying to export to has not allowed this OR that when you run the script from the php, it is not sourcing it correctly and it is forking a child.
What OS and version? Any error message? Can you post how php is attempting to run the script?