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-) 4 2433
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.
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>
The only "advantage" for using different extensions is that each extension
helps identify the contents of each file. I use .php for scripts which can
be executed, and .inc for scripts which must be included instead of
executed. I presume Smarty use .tpl to identify its template files. It is
just a matter of convention.
--
Tony Marston http://www.tonymarston.net http://www.radicore.org
"IchBin" <we******@ptd.n etwrote in message
news:Gw******** ************@pt d.net...
>
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-)
"Juliette" <jr*********@jo keaday.netwrote in message
news:44******** *************** @news.wanadoo.n l...
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>
You can also put .inc files in a directory which is outside the web root, or
in a password-protected directory so that its contents cannot be accessed
through the web server.
--
Tony Marston http://www.tonymarston.net http://www.radicore.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jj |
last post by:
Care to enlight?
Thanks!
|
by: Husam |
last post by:
Hi EveryBody:
I have research about advantages and disadvantages of C++ languages In one
of my programming courses.
Can Any one help me and told me about advantages and disadvantages of C++
or redirect me to some web sites proffessinal about this kind of reserach ?
any help will be appreciated
|
by: vumani |
last post by:
what is the advantages and disadvantages of Ms SQL server and java servletts front-end on the clien end.
what is the advantages and disadvantages of Ms Access on the server, connected via JDBC and java on the client end.
what is the advantages and disadvantages of HTML on the client end,coupled with SQL server and ODBL on the server end.
|
by: vibee |
last post by:
what are the advantages and disadvantages of normalization, and if i alread have a single talbe with a single form, is it too late to normalize thanks
|
by: hsn |
last post by:
i would like to know what are the security advantages and disadvantages in HTML
thank you
| |
by: bantunks |
last post by:
Hello,
I am trying to figure out the advantages and disadvantages of exposing interfaces through Opaque data types in C. I have figured/found out the following two advantages
1. Higher level of abstraction
2. if the layout of the defined structure inside the source files changes, it will reduce/limit/minimize the amount of changes that may be needed in the code of the application that uses the library i.e. the library will itself handle...
|
by: Damodhar |
last post by:
what is the advantages and disadvantages for
register_globals = on
|
by: Jonathan Sachs |
last post by:
I'm a programmer learning PHP. I'm looking for some input on its
strong and weak points compared to other server-side programming
environments, e.g., Java Server Pages.
Please note, this is not a religious question. Programming languages
are tools to me. I just want information about where different types
of solutions are likely to be optimal.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |