The code in PHP must be inserted into a text file using a special tags, then PHP will process everything between those tags, the rest is just ignored. There are the types of tags:
Standard Tags (This is the most common and correct way, this type guaranteed to be available and cannot be disabled by changing PHP’s configuration file):
<?php
"code goes here"
?>
"code goes here"
?>
Short Tags (This way is the old standard, but could has problems with XML headers):
<?
"code goes here"
?>
"code goes here"
?>
ASP Tags (This option is available if you like to use ASP tags):
<%
"code goes here"
%>
"code goes here"
%>
Script Tags (This is another version similar to JavaScript code):
<script language="php">
"code goes here"
</script>
"code goes here"
</script>

Post new comment