What is PHP ?

PHP (Pre Processor Hyper text ) is a scripting language that was originally designed for web development. PHP can be easily embedded in HTML. PHP generally runs on a web server. It is available for free and can be used across a variety of servers, operating systems and platforms. When a visitor opens a php page, the server processes the PHP commands and then sends the results to the visitor’s browser.

PHP only parses code within its delimiters (<?php and ?>). Anything outside its delimiters is sent directly to the output and is not processed by PHP.
<?php means starting of php code
?> means end of php code
You can also use the syntax below
<script language=”php”>
echo “Test”;
</script>

php’s short tags areĀ  <? and ?> but short tag can be disabled in the PHP configuration so always use <?php and ?>

No related posts.

Leave a Reply

XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>