On Tue, 2003-07-08 at 15:23, Ricardo Striquer Soares wrote: > Hi there ... > > I was thinking in port my PHP applications to a C/CGI, although I hear > that the C/CGI takes too much of the CPU, is that true? So is that true > that the PHP is easier them CGI in this context? > > thanks
You might get more/better responses if you posted to a web-centric or PHP centric list. The main reason folks I know use PHP is that it is an in-line embedded scripting language for HTML. In other words, you PHP code is embedded in the middle of your HTML. If you are running an integrated PHP processor, e.g., mod_php with Apache (as I assume most folks using Linux would do) then the code is interpreted and run within the context of the web server. CGI, whether it is C, Perl, or PHP running as CGI (most common in a Windows/IIS environment), needs an external process to be fired off to interpret or run the application. This incurs additional overhead, context switches, and so on. In the end, with PHP you can create dynamic pages based upon code embedded in the page that is interpreted within the context of the web server at run time. So the question becomes, why do you want to run a CGI model? There are reasons one would choose to do so, but far fewer reasons than there were years ago in the days before PHP and other embedded scripting languages. - rick warner -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list