Hi,

PHP is more limited than perl, but much simple to use for simple web pages
than perl.
PHP was created specially for making web pages and you can transform very
easy a .html file into a .php file.
PHP is better than perl for web sites where there are very few dynamic parts
of web pages, because those dynamic parts can be inserted in a more simple
way.
PHP and Perl can run a program as a CGI script, but it is not recommended to
run them as CGI scripts but as a web server module and The web hosting
companies prefer to offer php instead of perl because PHP is more simple to
use and install as a server module than perl.

Perl is better for more advanced tasks, it is better than PHP because it is
a little faster, there are much more libraries for perl than for php, and it
can also be used for creating programs with GUIs for Windows and portable
programs with GUIs on more OSes.

The web hosting providers also like PHP because it can be set to not provide
some functions like sending email, or other such restrictions.

For creating web pages with perl there are very many ways that can be
followed:
- Use the module CGI only;
- Use the Module CGI, a templating system like HTML::Template,
Template-Toolkit or another one;
- Use mod_perl, the module CGI or Apache::Request, a templating system;
- Use mod_perl and the module Mason;
- Use a framework for creating web sites like Catalyst or Maypole;
- Use a content management system like Krang or others;

...

Teddy

----- Original Message ----- 
From: "sfantar" <[EMAIL PROTECTED]>
To: <beginners@perl.org>
Sent: Friday, May 26, 2006 3:17 PM
Subject: What are the differences between Perl and PHP when handling with
Web pages


> Hi everyone
>
> What are the differences between Perl and PHP?
> Which one is the best to build up a website?
> There are more and more PHP-based websites. Except the fact that ISP
> provide most of the time PHP/MySQL web hosting, why do people prefer
> using PHP instead of Perl?
>
> I would like to create one only using Perl. Consequently, what are the
> most used modules for this purpose?
> Thanks in advance for your help.
>
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to