Re: [PHP] .inc over .php

2002-04-19 Thread Jason Wong
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

Re: [PHP] .inc over .php

2002-04-19 Thread Danny Shepherd
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. -- PHP

Re: [PHP] .inc over .php

2002-04-19 Thread Jason Wong
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. SARCASTIC IOW make them into .php files? /SARCASTIC -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

RE: [PHP] .inc over .php

2002-04-19 Thread .ben
]] 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. SARCASTIC IOW make them into .php files? /SARCASTIC

Re: [PHP] .inc over .php

2002-04-19 Thread Tom Rogers
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. FilesMatch

Re: [PHP] .inc over .php

2002-04-19 Thread Erik Price
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 I

Re: [PHP] .inc over .php

2002-04-19 Thread Erik Price
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

RE: [PHP] .inc over .php

2002-04-19 Thread .ben
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

RE: [PHP] .inc over .php

2002-04-19 Thread Tim Ward
]] 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. Why use .inc as a file

Re: [PHP] .inc over .php

2002-04-19 Thread Meir Kriheli
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 better

Re: [PHP] .inc over .php

2002-04-19 Thread J Smith
3) Block downloads on .inc files, like using a Files 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