I'm doing an online challenge where I have to log on to a server with a username and password. I inspected element and found a comment in the HTML code saying that the details are in 'page.phps' in case he forgets the details. So I was wondering: what's the difference between .php
and .phps
?
If you use .php as your extension to a file, the server will then interpret the code behind that script and returns the desired output.
While .phps will just output literally a color-formatted content of that script as shown below.
The PHPS file type is primarily associated with 'PHP Source' by The PHP Group. Generally, PHP files will get interpreted by the Web server and PHP executable, and you will never see the code behind the PHP file. If you make the file extension .PHPS, a properly-configured server will output a color-formated version of the source instead of the HTML that would normally be generated.
Not all servers are so configured.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With