Forum Moderators: coopster

Message Too Old, No Replies

php as module?

         

delpino

11:43 am on Jan 23, 2003 (gmt 0)

10+ Year Member



Anybody knows what the pros and cons of having php as a module or as cgi? I always wondered what are the differences, and how can i find out what php my webhost has?

jatar_k

11:12 am on Jan 25, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Basically, php as a module is much faster, it doesn't have to fire up the php engine/parser every time it runs into a php page.

dingman

7:09 pm on Jan 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



and how can i find out what php my webhost has?

1) ask them, if they let you talk to someone who knows what the question means.

2) put up a page that calls phpinfo(), and look for a field called "Loaded Modules". If that field includes 'mod_php4', it's a module.

<?php phpinfo();?>

Would do the job just fine for such a page.