3) Block downloads on .inc files, like using a directive in
httpd.conf or a .htaccess file in apache. (Or whatever on another web
server.) Now, even if a user tries to view that file, it won't execute at
all, thus perhaps saving you some memory and clock cycles. (And it's
generally more secu
On Friday 19 April 2002 15:58, Erik Price wrote:
> On Friday, April 19, 2002, at 04:10 AM, Jacob Wyke wrote:
> > Why use .inc as a file extenstion when you can use .php ??
> > What are the advantages/disadvantages to using .inc?
> > Is one more secure?
> > Which is faster?
> > Which is consider a
ong [SMTP:[EMAIL PROTECTED]]
Sent: 19 April 2002 09:28
To: [EMAIL PROTECTED]
Subject: Re: [PHP] .inc over .php
On Friday 19 April 2002 16:10, Jacob Wyke wrote:
> Just a few quick questions if anybody is out there.
Nobody here but us chickens.
> On Friday, April 19, 2002, at 07:22 AM, .ben wrote:
>
> > i'm not sure if the same rules apply to PHP but with ASP I make all my
> > includes contain only functions and constants, no free mark-up, and then
> > save them as .inc.asp so if requested directly they return an empty
> > script.
>
> U
On Friday, April 19, 2002, at 07:22 AM, .ben wrote:
> i'm not sure if the same rules apply to PHP but with ASP I make all my
> includes contain only functions and constants, no free mark-up, and then
> save them as .inc.asp so if requested directly they return an empty
> script.
Until the ASP
On Friday, April 19, 2002, at 04:10 AM, Jacob Wyke wrote:
> Why use .inc as a file extenstion when you can use .php ??
> What are the advantages/disadvantages to using .inc?
> Is one more secure?
> Which is faster?
> Which is consider a better pratice?
It's just to help me organize which files
Hi
By using .inc you can be sure they will not get executed out of context
which can be dangerous, but also you should add this to apache config to
stop them being delivered as plain text which can also be dangerous. I
don't know about IIS but I guess they have something similar.
Order a
ilto:[EMAIL PROTECTED]]
> Sent: 19 April 2002 11:38
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] .inc over .php
>
>
> On Friday 19 April 2002 17:31, Danny Shepherd wrote:
> > A third way could be to append .php onto those files too,
> giving .inc.php,
> > .class.php etc
On Friday 19 April 2002 17:31, Danny Shepherd wrote:
> A third way could be to append .php onto those files too, giving .inc.php,
> .class.php etc.
>
IOW make them into .php files?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Des
A third way could be to append .php onto those files too, giving .inc.php,
.class.php etc.
Danny.
> There are two ways to counter this:
>
> 1) have the .inc files in a directory outside the scope of the webserver
> directory.
>
> 2) set the webserver to treat .inc files as php files.
>
--
PH
On Friday 19 April 2002 16:10, Jacob Wyke wrote:
> Just a few quick questions if anybody is out there.
Nobody here but us chickens.
> Why use .inc as a file extenstion when you can use .php ??
Just a matter of aesthetics. Some people might like to use .inc to remind
themselves that the file is
11 matches
Mail list logo