|
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
Navigation:
[Reply to this message]
|