In said:
I have to add that I am not much into programming and I want a good
web site but most of all what is important to me is ease of use and a
easy to update web page. I will be using Macromeda Studio 8 to
develop it (dreamweaver and flash)
I wouldn't say "required". One thing to watch out for (and I know this because
I've been asked to move in and fixup/add other scripts) in the land of PHP
there are a lot of really nice looking packages and scripts.
Unfortunately, these are sometimes written by web designers who, while really
good at graphic design and layout, aren't always the best at watching security
issues.
I've seen stuff like this:
$sql = "SELECT foo from bar where id=" . $_GET['id'];
Actually written by cheap freelance places who place the lowest bid on contracts.
If you can't see the problem in the above statement, don't worry, you're
not the only one.

(but do check into it, it's a common problem.)
The sad thing is, programs/scripts that do that look really sharp and
professional on the outside. They were written by people who are excellent web
designers first and programmers second. (or people who charge way under what it
should cost and need to crank out stuff really really quick to make their
profit, I guess if you find someone who'll do a $500 project for $45.00, you
get what you deserve.)
Perl I think tends to attract more people who are interested in the programming
side of things. In perl, you'd use place holders for the above case, which is
a lot more secure. (and, depending on database.. much faster) Also, perl has
mod_perl which can in many cases, run faster then php. (since you can keep data
structures around in mod_perl, can't do that in PHP w/out buying special stuff.)
You won't find a $3.95 hosting provider that supports mod_perl though...
PHP saves you the fork() so it appears to run faster than perl, but, I've seen
perl CGI scripts actually run faster then PHP, because they were written with
speed in mind. (for example, in CGI land, you load only what is needed for a
given request, that speeds things up a LOT. Unfortunately the opposite is true
for mod_perl) PHP5 has autoload stuff, but it's on a pr. class basis and is
quite difficult to design for.
To keep things sane, PHP usually ends up loading more than required for a given
request. This can cost you the time you saved by avoiding the fork() call in
the first place. (this is typically done for EACH request)
The lack of fork() calls is often cited as the reason PHP is so great, it's
blown out of proportion and anyway a lot of the PHP5 hosts actually DO fork to
maintain backward compatibility with PHP 4.n. (modern unix hosts anyway.. have
shared memory with copy-on-write systems, meaning that if the perl binary is running
some place else, the fork overhead isn't so bad)
I do think PHP is easier to work in though, too easy in many cases.
I like PHP for content management because it's sooo simple. The ideal content
manager is PHP + CVS. Let the filesystem handle "content management". PHP
is excellent for that.
Fortunately, perl has a lot of really flexible template systems.
Unfortunately, perl has a lot of really flexible template systems.
The standard template system of PHP combined with it's relative ease of use (for simple
things anyway) is probably why it's been so successful. That and all the hype
over not forking a process.
Main reason for using PHP is because everyone else is.
Jamie