snowman4839 Posted July 25, 2008 Share Posted July 25, 2008 What's a simple explaination of what a Module is. And I was also wondering why there isn't one for PHP or Javascript. Quote Link to comment https://forums.phpfreaks.com/topic/116520-modules/ Share on other sites More sharing options...
MFHJoe Posted July 25, 2008 Share Posted July 25, 2008 Apache modules are pieces of code which extend the main code for Apache. Apache on it's own is a pretty basic server but by including these modules it learns to do other stuff which makes it actually useable. There is a PHP module, it's called php5_module and it's filename is libphp5.so. The reason there's no JavaScript module is because JavaScript is run on the user's computer rather than your server. Quote Link to comment https://forums.phpfreaks.com/topic/116520-modules/#findComment-599444 Share on other sites More sharing options...
wildteen88 Posted July 25, 2008 Share Posted July 25, 2008 Apache modules are pieces of code which extend the main code for Apache. Apache on it's own is a pretty basic server but by including these modules it learns to do other stuff which makes it actually useable. There is a PHP module, it's called php5_module and it's filename is libphp5.so. The module used varies on different OS's. For example on Windows PHP5 comes with three Apache modules, these are php5apache.dll - for use with Apache 1.0.x php5apache2.dll - for use with Apache 2.0.x php5apache2_2.dll - for use with Apache 2.2.x To load a module in Apache you'll use the LoadModule directive, example LoadMode module_name "path/to/module" # Real example LoadModule php5_module "C:/php/php5apache2_2.dll" Quote Link to comment https://forums.phpfreaks.com/topic/116520-modules/#findComment-599656 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.