Friday, April 15, 2011

Come to Know PHP

| Friday, April 15, 2011 | 0 comments

Did you know that PHP Surprised smile
1. Is a recursive acronym of P HP: Hypertext Prepocessor.
2. First created by Rasmus Lerdorf in 1994.
3. Must be written in between the tags:

a. Style XLM
<?php
echo ”Style XML”
?>
b. Short Style
<?
Echo”ShortStyle”;
?>

c. Style SCRIPT
<script language =’php’>
echo ”Style JavaScript”;
</script>

d. Style ASP
<%
echo ”Style ASP”
%>

4. Every single statement (command) usually end with a semicolon (;)
5. Case sensitive to the name created by the user identifier (a variable, constants, functions, etc.), but NOT case sensitive to the built-in identifier of PHP. So:

  • $haha ≠ $Haha ≠ $HAHA
  • calculateArea() ≠ CalculateArea()
  • echo = ECHO
  • while = WHILE

6. Easy to learn

Say Hello to the PHP Sarcastic smile
1. Enter this command in notepad or dreamweaver.
<? php
echo "Hello, my name is PHP";
?>

2. Save with the name DocumentRoot hello.php on your computer.
3. Open the browser and then typing http://localhost/hello.php
4. See the results in the browser.

 

0 comments:

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Post a Comment

thank you for visiting my blog and comment here. I hope the commentary contains a comment which intend to build and repair. criticism and suggestions I gladly accept.

Popular Posts

 

Total Pageviews

stat

© Copyright 2010. http://programminghaha.blogspot.com . All rights reserved | http://programminghaha.blogspot.com is proudly powered by Blogger.com | Template by o-om.com - zoomtemplate.com