[CentOS] which programming language for server-side admin tasks

Mon Jun 15 17:45:22 UTC 2009
Rudi Ahlers <rudiahlers at gmail.com>

On Mon, Jun 15, 2009 at 6:48 PM, John R Pierce<pierce at hogranch.com> wrote:
> Rudi Ahlers wrote:
>> What I meant was, PHP talks to PHP script engine, which talks to
>> Apache, which then talks to system commands. - is there a quicker way
>> of doing it?
>
> um, thats somewhat mixed up.     user -> browser -> apache -> php that
> interprets your script -> OS function
>
> with a native compiled language like C++, its user -> browser -> apache
> -> compiled C++ binary -> OS function
>
> not really -that- different, as theres far more overhead in all the rest
> of the process than in the actual script or program,unless its doing
> something very computationally intensive.
>
> also note, PHP is a preloaded module, while your C++ program probably
> gets forked on every webpage, unless you write it as an apache
> module...  ooops.
>
> _______________________________________________


Thanx John, I didn't think about it this way :)

But would PHP be able to perform all tasks that PERL / C++ can?


-- 
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532