PHP Tags

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"
?>

Short Tags (This way is the old standard, but could has problems with XML headers):

<?
   "code goes here"
?>

ASP Tags (This option is available if you like to use ASP tags):

<%
   "code goes here"
%>

Script Tags (This is another version similar to JavaScript code):

<script language="php">
   "code goes here"
</script>

0
Your rating: None

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><p>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: [code], [blockcode], [as], [as3], [css], [drupal5], [drupal6], [html], [java], [javascript], [mysql], [php], [xml].
  • You may quote other posts using [quote] tags.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.