Does php have any concept of config files or global.asax?

Coming from the .net background, bear with me!

Does php have something like a web.config or global.asax file or does it just drop the application on the filesystem and run on the webserver? (obviously dropping the files showing up in apache for the domain, etc.).

Specifically, we're thinking about customizing wordpress.

+2


source to share


2 answers


PHP is a parser. This is not a wireframe. In ASP.NET, this is the Framework and therefore has its own configuration files.

As far as PHP is concerned, we have php.ini - a PHP configuration that sets how PHP behaves and so on.



However, for the application layer, you can create your own config file. Usually, if you are using a PHP framework, they will have an application-level configuration file (eg "config.php") that will define how the framework will work, etc.

Installing Wordpress is pretty straightforward.

+2


source


Just drop the files; -)

Of course, you need to create a database (and db user), configure Apache VirtualHost, and you will need to configure the application itself ...



... But PHP + Apache has no concept of "application server".


About wordpress, there should be some file explaining how to install, btw; but it's no more complicated than deleting files, possibly creating a configuration, and a few "next" screens; -)

+1


source







All Articles