News for hackers. Stuff that matters.
Re:Kill your index.php by awinder on Tuesday January 28, 2014 @11:57PM (#7141996)
I guess it depends on what the use case is for configuration, but I'm envisioning times you want to allow for user/developer configurability of your program, or an installation being able to write out values that your program can use in its execution. Do you really want full programming language tools in your configuration level? Do you want an installation routine writing out a php script, or should it just serialize a config object to json / yaml?
Re:Kill your index.php by dools on Wednesday January 29, 2014 @12:05AM (#7142027)
I don't really have a problem with caching application writable config as something like serialized json or something like that, but I really dislike composer's configuration file format.
Re:Kill your index.php by bandushrew on Wednesday January 29, 2014 @03:41AM (#7142748)
hmm, I think maybe we had different things in our minds regarding what a config script is.

I certainly don't think that the web server should be writing out executable php scripts, if that is what you are asking?

OTOH, I have seen many examples of php configuration files done by simply setting values in an array, looking up other values from other places and so forth - i.e., an executable configuration file written in php.

I think it is a bit of a jump though to assume that the author was suggesting that the web server be able to write executable php files?