Ok i will anwser each question, one at a time.
*NOTE
------------------------------------------------------------------
I have not used PHP 5 as many others have not as well. I would strongly suggest to use a stable build of 4, I run 4.3.10
------------------------------------------------------------------
1. PHP runs on the server in files with .php extensions, unless you "hack" Apache to use others. You can use a txt editor to write PHP, my preference is Editplus+.
2. PHP can be anywhere in a file as long as the file has a .php extension (see anwser 1 for exception) Here is an example .php page
Code:
<html>
<head>
<title>Example PHP Page</title>
</head>
<body>
<h1>Print out the specified message!</h1>
<h2><?php echo 'Cool PHP Message!'; ?></h2>
</body>
</html>
3. Usually php pages are linked or 'included' inside a php page
Code:
include '/path/to/php/file/file.php';
4. PHP has SQL commands and you can also write your own. The below example is not for beginner's but shows a way to use the sql functions included in PHP
5. Not sure what you mean by tags, but i guess you mean this?
[code]
<? ?>(shorthand PHP tags)
<php ?> (normal PHP tags)
Good luck and post any projects or questions on the forum. I am sure you will pick up PHP in no time. How did you like CF? I haven't used it before. Is it worth the learning?
[Edited on 2/3/2005 by mkeefe]