0

I'm sorry to ask what seems to me is a dumb question but after reading the documentation and doing some experiments I'm not sure what exactly exec() is calling when I run, for example,

exec("getType \"$file\"",$out);

Is it the same as me typing the command in a command prompt or will it run the function getType which can be defined elsewhere in the program? If it is the prior where does getType come from? If it is the later why would I not just call the function in a script like usual?

Thanks for any help clearing this up, it is very much appreciated.

mario
  • 1,503
  • 4
  • 22
  • 42

0 Answers0