PHP Basics WorkshopDeveloped by: Paul Burney
Language SyntaxTo add PHP code to a web page, you need to enclose it in one of the following special sets of tags:
So, what kind of code goes where it says php_code_here? Here's a quick example.
If you copy that code to a text editor and then view it from a web site that has PHP enabled you
get a page that says Hi There. The A little more information can gained by using the PHP info command:
This page will display a bunch of information about the current PHP setup on the server as well as tell you about the many built in variables that are available. Please note: Most server configurations require that your files be named with a .php3 extension in order for them to be parsed. Name all of your PHP coded files filename.php3. In the next section, we will discuss using your own variables. |
|||||