Re: [Files suffix] .inc.php files
| From: | Jochem Maas | Date: | Tue, 31 May 2005 18:34:29 +0000 |
| Subject: | Re: [Files suffix] .inc.php files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216087@lists.php.net to get a copy of this message | ||
sorry Martin, forgot to post to list!
oh and the list is a little overworked so don't
go posting double if your post doesn't appear immediately...
it will get there eventually ;-)
Martin Zvarik wrote:
Hi, I saw files like "file.inc.php" and "file.inc"I saw penguins :-)
What is the *.inc suffix good for ?differentiating between different 'types' of files - i.e. those with a .inc extension usually denote files which are included as apposed to being called 'directly' from the browser. another type of file name you might see is 'file.class.php' for files which contain (usually a single) class definitions or 'file.funcs.php' for files which just contain a 'library' of functions. basically name your files anyway you see fit, php does not care - do bare in mind that yor webserver needs to be configured to recognize you php files (which is usually done by way of file extension) - <?php // this will work as expected - assuming such a // file actually exists somewhere alogn your include_path. include_once 'crufty-include-rubbish'; ?> hth
Thank you for replies. Martin