Yes I know this would signify a bug, but I have a question about php securely executing remote files(such as shell scripts). Is this possible at all?
That is not dependent on PHP as far as I can see, other than stating that yes it can certainly exec() any program on the local machine that has the ability to talk to other machines.