You are here: Re: Advantages or disadvantages of .inc files « PHP Programming Language « IT news, forums, messages
Re: Advantages or disadvantages of .inc files

Posted by Juliette on 07/16/06 03:47

frizzle wrote:
> IchBin wrote:
>> What are the advantages or disadvantages of .inc files over the
>> 'include' statement. I can't seem to find that information at the PHP
>> website.
>>
>> Also the same for form building inline, I guess you would call it, and
>> HTML template objects. File types of .tpl and .ihtml?
>>
>> Thanks in Advance...
>> IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
>> __________________________________________________________________________
>>
>> 'If there is one, Knowledge is the "Fountain of Youth"'
>> -William E. Taylor, Regular Guy (1952-)
>
> To answer your first question:
> if *.inc files were called directly via the browser's url, most likely
> it's content would be displayed unparsed. So your entire code would be
> naked on the internet, including possible passwords etc.)
>
> Instead if you want to use '.inc', you could use file.inc.php, which
> would be parsed before outputted to the browser.
>
> Frizzle.
>


Or include the following in your .htaccess file:

<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>

 

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

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