3 ms·
PHP is not really a good candidate for something meant to be distributed to other platforms due to the fun fact that a lot of custom configurations that affect
by jameslk 9y ago
PHP is not really a good candidate for something meant to be distributed to other platforms due to the fun fact that a lot of custom configurations that affect PHP's runtime behavior are held in a system-wide ini file. External modules that allow certain features to work also need to be loaded from this configuration file. This makes having your application work consistently across platforms kind of a nightmare.
- TazeTSchnitzel 9y agophp.ini has its problems, but I don't understand this remark: > External modules that allow certain features to work also need to be loaded from this configuration file. What's wrong with this? The modules in question (at lest, most important extensions) are part of the core codebase and will be available as packages on whatever platform you're using, and the package manager should configure them for you.
- jameslk 9y agoThe problem is that the distributed script(s), if the rely on external modules, will have to guess if those modules are available, rather than just bringing them with the script like other language dependency managers provide. For example, with Ruby's gems or Node's npm, if I install a command line package, external modules (native C extensions) will be installed as well.