PHP-naming vs. HTML-naming
#1
Is it always necessary to name all your web pages PHPs, especially when some are not with PHP functionality?
Reply
#2
No
Reply
#3
Thanks, that helps a lot (no, I'm not being sarcastic; I actually employ the habit of saving all my pages into the PHP format)!
Reply
#4
There is no such thing as a "PHP format." They are all text files. Name them whatever you want.
Reply
#5
OK buddy, I will.
Reply
#6
as long as the mime settings are correct, or the browser will probably try to download them Tongue
Reply
#7
Mime settings are for what the server places in the content-type header for files it serves directly. It has no effect on what the server actually does with the file.

Other configuration directives determine how the server handles files that require additional server side processing.

The possibilities are infinite, which is why it doesn't matter.
Reply
#8
It is less confusing to any humans other than yourself (and even to your own future self months or years down the line) to give files sensible titles, including appropriate file extensions.
Reply
#9
GTFO with your sensibleness.
Reply
#10
oh i've had MIME settings play tricks on me. Both server-side and client-side. If you rename it to a format that's not a standard PHP and the browser doesnt have any mime settings for it, the browser will either try to download it, or the server will try to block you from accessing the file. IIS does this, and apache will try to tell you to download it (atleast it did 6 years ago)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Perl vs. PHP RobertX 6 39,427 Dec 11, 2020, 04:52 am
Last Post: waregim
  Structuring the PHP site ClassicAsca 4 22,746 Sep 12, 2017, 01:28 am
Last Post: floki
  Trying to create php pages automatically ? Uplaoder 2 19,369 Aug 04, 2016, 02:54 am
Last Post: Uplaoder
  Looking for help with HTML Cov 4 19,247 Jan 16, 2016, 18:46 pm
Last Post: Moe



Users browsing this thread: 1 Guest(s)