Jan 31, 2017, 16:25 pm
Is it always necessary to name all your web pages PHPs, especially when some are not with PHP functionality?
PHP-naming vs. HTML-naming
|
Jan 31, 2017, 16:25 pm
Is it always necessary to name all your web pages PHPs, especially when some are not with PHP functionality?
Jan 31, 2017, 16:46 pm
No
Jan 31, 2017, 17:01 pm
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)!
Jan 31, 2017, 18:08 pm
There is no such thing as a "PHP format." They are all text files. Name them whatever you want.
Jan 31, 2017, 20:09 pm
OK buddy, I will.
Feb 01, 2017, 13:25 pm
as long as the mime settings are correct, or the browser will probably try to download them
Feb 01, 2017, 19:37 pm
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.
Feb 01, 2017, 20:03 pm
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.
Feb 01, 2017, 20:10 pm
GTFO with your sensibleness.
Feb 02, 2017, 11:19 am
(This post was last modified: Feb 02, 2017, 11:20 am by Q91. Edited 1 time in total.)
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)
|
« Next Oldest | Next Newest »
|
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 |