View Full Version : extentions - how .php/.php3 different?
04-08-2003, 05:01 PM
Does ending files with .php or .php3 make any difference? For instance, are there some things or functions that a file.php cannot perform cuz its not file.php3?
04-08-2003, 07:06 PM
it depends on the server configuration and php version , file extensions need not reflect php versions which is confusing I know...
If a server has php4.2.3 installed and is configured to pass *.php,*.php4,*.php3 to the PHP interpreter then they will all be passed to php4.2.3 for parsing so in that case there is no difference in functionality between php,php3 or php4 files.
its perfectly possible to have *.yaks, *.gribble etc parsed via PHP (or whatever)
It's possible though this would be the exception rather than the rule....to have 2 versions of PHP running on the same server (one as an SAPI module and 1 as a CGI) , in that case it may be that the extensions offer different functionality, again this is hardly standard.
04-08-2003, 07:22 PM
What really surprises me is that I haven't seen a lot of people setting up their own custom extensions for their sites. Occasionally I see a site that does it but not very often.
Hey mabe I should name all my pages index.feyd or index.spooks or index.britneyspears
04-08-2003, 08:03 PM
How do you set file extensions to be parsed?
04-08-2003, 08:29 PM
.htaccess (if allowed) or httpd.conf if you have access...
AddType application/x-httpd-php .yak .llama .wombat
04-08-2003, 08:34 PM
I do have .htaccess, so I will use that.
I was thinking PHP.ini, but yeah, I remember now.
Cheers firepages :D
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.