I'm a big fan of PHP. It's pretty simple to use. I've had some experience with Pearl, and in most cases, it would be overkill for smaller web projects.
I use PHP all the time now.
Here's a how to create your first PHP script.
1) Open a text document.
2) Type the following code:
Code:
<html>
<head>
<title>My First PHP Script</title>
</head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
3) Save it as Page.php
4) Upload it to the server (which has php services running)
5) Call the page from your browser.
www.domain.com/path/to/file/page.php
** By simply saving it as a .php file it tells the server software to let the php engine pars the page.
** In this case, we just had it print the words "hello world" but we could have had the script do something more intelligent.
** Most of the code above is straight HTML. The only PHP was between the "<?php" AND "?>" tags.
** You can put multiple php tags, so you could have a page that's half html and half php.
** Ideally you'd use PHP to either write HTML or talk to your database, then write HTML based on what it finds.
Go to
wwwPHP.net to learn everything you could ever want to know about php.