shadowline
Comments << Extensions & Tags >> Escape Characters
Check out the extension (file type) showing in the address bar right now. It should be showing php002.php. That extension tells the server that this page contains some php coding in it and should be parsed (executed) before the page is displayed. Some host servers may require a slightly different extension such as .php3 which means the server has version3 of the php module loaded for use. Another extension type may be .phtml. Check with your host on which one they require or just test out each type.

The next step is the PHP tags. This will be one more thing to check with your host (or test yourself) to see which one is usable. All PHP coding is contained within a set of PHP tags.
<?php
coding goes here;
?>

In many cases, a host will support the "short" version which looks like :
<?
coding goes here;
?>

But if you want to stay with backwards compatability, you should leave the PHP part on the first part. It doens't hurt and still works in the newer versions of PHP.

One more thing to note is the semi-colon. Similar to Javascript, each code line is ended/separated by a semi-colon.

For the rest of these tutorial pages, we will be showing the PHP extension for filenames and using the short version of the tags.
Comments << Extensions & Tags >> Escape Characters
shadow

Advertise in the banner along the top, Click here!

Valid XHTML 1.0 Transitional Valid CSS! Text Link Ads
shadow
shadow