Andrew J. Kopciuch wrote:
>For PHP -> http://www.php.net, has all of the documentation online, and it is
>very good. I would reccomend reading their docs before going to a book.
>
>And for MySQL I would go to http://postgresql.org and download that. The
>documentation comes with it.
>
>
Hehe ... I second that last one.
If you're in a hurry to learn PHP and database programming using PHP, I
suggest getting a distribution which already has those things installed
and configured. RedHat 8.0, for instance, comes with postgresql (and
mysql) and support for those in its PHP packages. It also happens to
have PHP support in its Apached httpd server. Once installed and
activated (via Services config), you can easilly start your
helloworld.php:
<html>
<title>Hello, world!</title>
<body>
<?php
$db = pg_connect("dbname=<dbase> user=<user> password=<password>");
print "Hello, world!";
pg_close($db);
?>
</body>
</html>
web page. (Oh, you might have to edit the ~postgres/data/pg_hba.conf
just to enable the use of password authentication).
From there, it's simply a matter of cracking open the docs on
http://www.php.net/ (as Andy mentioned). If you prefer reading paper
documents over the CRT one, check out the books listed in
http://www.php.net/books.php ("Programming PHP" by Rasmus Lerdorf
published by O'Reilly is an excellent reference)
--
*Richard Plana, B.Sc., CCNA*
Secretary
Calgary Linux Users' Group