title: How to detect if a file is being included or directly ran
body: <p>I have a php file that I include in my php script, but I don't want people to be able to directly run the file(without being included).
  How can I prevent that from happening?</p>