[PHP] official statement about PHP file extensions?

2002-04-19 Thread Durk Strooisma

Hi,

Is there any official statement (by php.net) about which file extension you
should use when using PHP (1, 2, 3 or 4)? I know that's server related, but
isn't there a standard?

http://www.fatcow.com/help/php.shtml states when using PHP4, you should
use .php4. But I have the feeling that's not true. I can remember the windows
installation of PHP4 which said .phtml and .php3 were deprecated and .php
was the only alternative.

Thanks in advance



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] official statement about PHP file extensions?

2002-04-19 Thread heinisch

At 19.04.2002  13:32, you wrote:

Hi,

Is there any official statement (by php.net) about which file extension you
should use when using PHP (1, 2, 3 or 4)? I know that's server related, but
isn't there a standard?

http://www.fatcow.com/help/php.shtml states when using PHP4, you should
use .php4. But I have the feeling that's not true. I can remember the windows
installation of PHP4 which said .phtml and .php3 were deprecated and .php
was the only alternative.

Thanks in advance


This only belongs to the settings your webserver allows.
f.e. I have configured, to parse every html file, so it looks like there were
static files, but they are php files. (not recommended on real 
traffic/big sites
Some ISP´s suggest that you use php3/4 extensions, as they have both versions
running.
Oliver


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] official statement about PHP file extensions?

2002-04-19 Thread Erik Price


On Friday, April 19, 2002, at 07:42  AM, [EMAIL PROTECTED] wrote:

 Is there any official statement (by php.net) about which file 
 extension you
 should use when using PHP (1, 2, 3 or 4)? I know that's server 
 related, but
 isn't there a standard?

 http://www.fatcow.com/help/php.shtml states when using PHP4, you should
 use .php4. But I have the feeling that's not true. I can remember the 
 windows
 installation of PHP4 which said .phtml and .php3 were deprecated and 
 .php
 was the only alternative.

 Thanks in advance


 This only belongs to the settings your webserver allows.
 f.e. I have configured, to parse every html file, so it looks like 
 there were
 static files, but they are php files. (not recommended on real 
 traffic/big sites
 Some ISP´s suggest that you use php3/4 extensions, as they have both 
 versions
 running.

Yeah, it really only depends on the web server.  I saw someone just the 
other day posting on this list who had their httpd.conf set to parse any 
.asp-suffixed files with PHP.  That was funny.


Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] official statement about PHP file extensions?

2002-04-19 Thread andy thomas



On Fri, 19 Apr 2002 [EMAIL PROTECTED] wrote:

 At 19.04.2002  13:32, you wrote:
 
 Hi,
 
 Is there any official statement (by php.net) about which file extension you
 should use when using PHP (1, 2, 3 or 4)? I know that's server related, but
 isn't there a standard?
 
 http://www.fatcow.com/help/php.shtml states when using PHP4, you should
 use .php4. But I have the feeling that's not true. I can remember the windows
 installation of PHP4 which said .phtml and .php3 were deprecated and .php
 was the only alternative.
 
 Thanks in advance


 This only belongs to the settings your webserver allows.
 f.e. I have configured, to parse every html file, so it looks like there were
 static files, but they are php files. (not recommended on real
 traffic/big sites
 Some ISP´s suggest that you use php3/4 extensions, as they have both versions
 running.

I wonder why they do this? In my experience, php3 code runs fine on a
php4 server and on the servers I manage, the apache configuration passes
both .php3 and .phtml scripts to php4 for execution.

Andy


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] official statement about PHP file extensions?

2002-04-19 Thread heinisch

At 19.04.2002  14:21, you wrote:
snip
  Is there any official statement (by php.net) about which file 
 extension you
  should use when using PHP (1, 2, 3 or 4)? I know that's server 
 related, but
  isn't there a standard?
snip
  This only belongs to the settings your webserver allows.
  f.e. I have configured, to parse every html file, so it looks like 
 there were
  static files, but they are php files. (not recommended on real
  traffic/big sites
  Some ISP´s suggest that you use php3/4 extensions, as they have both 
 versions
  running.

I wonder why they do this? In my experience, php3 code runs fine on a
php4 server and on the servers I manage, the apache configuration passes
both .php3 and .phtml scripts to php4 for execution.
8
Andy
Maybe PHP3 scripts work fine on 4, but if you´ve 4th, you cannot run them on 3.
And which ISP can/will guarantee that 3s work fine on 4, even in the 
beginning of 4?
(BTW some of my 3 scripts don´t work on 4)
Oliver


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php