Firstly PHP is a SSS(Server Side Script). This means if a user enter the site that is prepared by using PHP can only see the HTML output. For instance we have written a program and create an executable code. Then the executable code generates an output to the screen and you can not see the real codes of the program. This is the process of SSS. It generates an output to the screen.
So at last this is our first PHP code example :))
< html >
< body >
< ?php
echo "Hello Web!!!";
? >
< /body >
< /html >
< ?php is the code piece that the PHP codes start. PHP when realizes the sign < ? it interprets the codes until ?> sign. It does not executes the rest of the code. Since that the output of the code i have written above is that:
< html >
< body >
Hello Web!!!
< /body >
< /html >
So this is the process... As you see echo is a function like the print functions in C/C++ or Java.
See you at next article...
Friday, March 7, 2008
Introduction to PHP 2
Subscribe to:
Post Comments (Atom)
1 comment:
required infos about php for beginners!
Post a Comment