Reply to Re: PHP speed vs HTML

Your name:

Reply:


Posted by Mladen Gogala on 11/18/66 11:41

On Wed, 01 Mar 2006 11:21:40 -0800, Jan wrote:

> I need to make form on our front page. If using PHP, I suppose the full
> page must be PHP though I need none of the PHP features until the
> submit button is pressed.
>
> Only 3% of the users press the submit button of the form, remaining
> users do not use the form and have no benefit of PHP features.
>
> I also need a cookie to store the referrer, if using perl for the form
> submit, then javascript is the only alternative for cookie creation I
> suppose.
>
> With heavy traffic the page might become slower with PHP than if using
> HTML plus a cgi-bin perl?

Architecturally, PHP can not be slower as PHP interpreter is usually
a part of the httpd process while to call CGI one has to create a new
proces. You're avoiding context switches, process creation/manipulation,
signal dispatch and all those beautiful things. In addition to that, perl
is more complex, due to its more complex syntax. PHP is much simpler,
which means that the interpreter is much smaller.

--
http://www.mgogala.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация