You are here: Re: [PHP] [Files suffix] .inc.php files « PHP « IT news, forums, messages
Re: [PHP] [Files suffix] .inc.php files

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация