If you were working with WordPress you probably noticed that the installation includes a .htaccess file in its main directory. Whate are these files? The .htaccess file set specific directives for the server that should be executed when an Apache server is handling requests. In the default case of WordPress it makes the server point […]
Tag: Servers
Different ways of running PHP on an Apache server
When the server receives a request from the user it can serve the file directly, but sometimes it needs to translate the code using the appropriate application. Otherwise it would be showing the users the source code of the website. A server like Apache needs to be configured to handle specific content with an appropriate […]
Finding out PHP server interface
There are many ways of executing a PHP script. For example you might run it directly from a command line: Other option, readily available for tesing since PHP 5.4, is to spin up the internal PHP server and see the result in a browser: If you create a simple page with the function php_sapi_name you […]