Posted by Jochem Maas on 10/16/69 11:17
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
>
Navigation:
[Reply to this message]
|