Jump to content


Photo

CGI or Server Side Includes


  • Please log in to reply
2 replies to this topic

#1 lmandaleeka

lmandaleeka
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 01 September 2006 - 08:51 PM

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?



#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 01 September 2006 - 08:57 PM

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.
PHP Ninja

#3 lmandaleeka

lmandaleeka
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 01 September 2006 - 09:54 PM

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?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users