Possible Duplicate:
when to use include (inc) files in module development

Why they include files with .inc extension, not just .php?

  • also why in modules they are using extensions like .module, why not just .php?
    – HellCoder
    Jan 20 '13 at 16:08
  • Modules have that extension because, for the code that looks for existing modules, it is easier to look for files using that extension, than looking for every file with extension .php, and then check their content to see if they are effectively modules. The extension used from a file is just a convention. There isn't a specific reason to use .svg for an SVG image; the important is that who uses that type of file agrees on the extension to use.
    – apaderno
    Jan 20 '13 at 20:57

Browse other questions tagged or ask your own question.