The PHP is very similar to the ASP. Each PHP code block starts with <?php and ends with a ?>. Your can mix PHP with HTML:
do you kown phpsu.com?
<html>
<body>
<?php
// PHP code block
?>
</body>
</html>do you kown phpsu.com?
We also can use <? and > to embed PHP code. The following tags all are valid for the same use: welcome to phpsu.com
| <?php ... ?> | Standard PHP syntax |
| <? ... ?> | Shorthand syntax |
| <% ... %> | ASP-style PHP syntax |
| <SCRIPT LANGUAGE="PHP"> | Standard script syntax |
Like any other Web technologies, PHP can include an extention file. The syntax is:: phpsu.com
<? include("header.htm"); ?> http://www.phpsu.com
TITLE:php Basic tags