I use the exec and system function alot in my php coding, but how to I write a linux command line subroutine in php so I can call it at will within the exec and sys statments?
This is so confusing.
for instance in bash script:
ipsecconf "pass some values to ipsecconf sub-routine";
then the subroutine in bash:
ipsecconf()
{
//some commands here
}
So do I make it in php in the exec command so it can call the subroutine(also a bash script).