Finding the right name for an include that is to be executed before HTML output

Posted by Pekka on Stack Overflow See other posts from Stack Overflow or by Pekka
Published on 2010-03-11T15:56:49Z Indexed on 2010/03/11 17:24 UTC
Read the original article Hit count: 232

Filed under:
|

I am defining naming conventions for a simple plugin framework. For example:

  • index.php - the main plugin file
  • info.php - returns an array with plugin information
  • install.php - self-explanatory

can you think of an elegant, short-hand name for a PHP file that contains the code that is to be executed before any HTML is output? Do any examples from other frameworks come to your mind?

What I have been thinking of:

  • head.php - misleading, could be mixed up with HTML <head>
  • before_output.php - clumsy, too long
  • init.php - not exactly correct
  • start.php - current favourite

© Stack Overflow or respective owner

Related posts about php

Related posts about naming-conventions