Jump to content

Archived

This topic is now archived and is closed to further replies.

lmandaleeka

CGI or Server Side Includes

Recommended Posts

I am just exploring technologies, one question I had was, is PHP run as a ssi - within the process space of the webserver or is it run as CGI?
If I can do both, then is there any support in PHP for Fast CGI?
I read that session management is done by writing to secondary storage like /tmp of disks or databases, if I were to chose the Fast CGI option is there any in memory session management capability available?

Share this post


Link to post
Share on other sites
PHP runs much better as an Apache module. If possible, avoid using it in CGI mode.

Edit: Also, avoid using it on a Windows server if possible. :-) Windows runs it okay...but if you can use a *nix system...would be a good thing.

Share this post


Link to post
Share on other sites
What are the reasons that PHP shouldnt be used in CGI mode?
One is apparently the typical reasons of CGI having a lot of process over head due to process start and stop. Cant this be mitigated with fast cgi? Can we use PHP in fast cgi mode?
If I were to use JVM based servlets or JSPs versus PHP, isnt it more efficient considering that PHP is interpreter based?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.