PHP Module

A

Anonymous

Guest
I was just wondering after reading a short php article, it mentioned php modules... my question is

what is a php module?

how does it differ from just a php page with some script in it?

is there a tut on this subject?
 
First of all php is an APACHE module, so it could be confusing...

A PHP module could be some extra features you can add to php, for example the GD library gives you some new functions for dynamic creation of images.
You have to download and install it on your server.

Bye!
 
You may run PHP like module or CGI. that different?
module
run once with first run of server (Apache, ISAPI, NSAPI, etc)
CGI
runs on each script runs.... in win it's php.exe
 
First of all php is an APACHE module, so it could be confusing...

PHP can be installed as a module on APACHE (or any other web server) or as CGI and work like an external binary executable application (php.exe on windows as wizard said).

A php module can be defined as an extra library or application added on PHP to give additional functions to it. Modules can either be compiled with PHP (like GD on 4.3.x) or can be loaded when php starts, through php.ini configuration (like imap.so).
 
But i recommend use PHP like module faster and no problem with memory (CGI need more memory)
 
Back
Top