php and server load

They have: 1,587 posts

Joined: Mar 1999

just curious, this is a generalized question so a generalized answer will do. how much if any does php decrease server load compared to perl.

thanks

------------------

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

They have: 5,633 posts

Joined: Jan 1970

PHP is much easier on a server than PERL! There is no question about it. PERL is a more sophisticated language and it requires more CPU processing cycles and/or time.

Ask a general question, get a general answer, two weeks later.

PS: Sorry, I haven't been watching this forum as close as I should.

------------------
Dynamic Internet Solutions : http://www.dids.com
Windows NT and UNIX Hosting

They have: 112 posts

Joined: Apr 1999

Chad is right, Perl is a very flexible scripting language, thus its more memory consuming. However the largest problem with Perl/CGI on web servers is whenever a CGI request is made by a web client the server faces the load of spawning a new process of the Perl program. This could give heavy loads to a server if your site gets big. PHP addressed the problem by staying in the server's memory, therefore the php program would not be needed to restart everytime a request occured.
Actually Perl is not suitable for web applications unless you use mod_perl.

------------------

They have: 2,390 posts

Joined: Nov 1998

Hi all,
Why is it that ASP is so much slower than Perl?
JP

They have: 5,633 posts

Joined: Jan 1970

I actually thought about putting this in my previous message but I didn't due to a lack of time this morning:

PERL has to be started each time a script wants to use it (as Elara stated). However, you can use the mod_perl module which will make it stay resident in the servers memory, like PHP is by default. However, I should mention that PHP can also be setup so that it must be started each time before it is executed... This is referred to as the CGI version of PHP. Most hosts don't support it just because it make PHP resource intensive, like PERL.

------------------
Dynamic Internet Solutions : http://www.dids.com
Windows NT and UNIX Hosting

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.