Posted by Jonathan N. Little on 02/08/07 15:52
Adrienne Boswell wrote:
>
> My naming convention is whatpart_inc.php or whatpart_inc.asp. I do this
> because a) it saves me thinking time; b) using _inc, I can still do a
> search based on file name; c) I very often include server side code in
> my includes so, they still need that extension.
>
I do something similar, somefile.inc.php and myObject.class.php ... I
also have a calling constant that must be set in the calling script or
the module will:
if(!defined('SOME_SECRET_CONSTANT')) {
die("Can't access this module file directly");
}
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|