Sunday, September 2, 2007

How To master in PHP scripting

There has a lots of scripting in web design. You can used HTML codes, ASP codes, CGI codes PHP codes and many more.. In my wed designing i prefer to used PHP script instead..
You know why.. Easy to understand the script language and easy to edit.The most important is the PHP codes will make your scripting in hidden.I will show you the difference between HTML code and PHP code..

example in HTML codes,

"html"
"body"
Say hai to all
"/body"
"/html"
**note please replace the "" sign with <> sign..
Copy this codes and paste it to notepad. Save as WebDesign.html
Then Clik the WebDesign.html file.

As the Figure below



then try to view the source code,

it will show you exactly as your design in the HTML code

Now try to used this simple PHP script,

"(php?"
echo Hai
"?)"
**note please ignore the " sign and replace the () sign with <> sign
Copy this codes and paste it to notepad. Save as WebDesign.php
Then open the WebDesign2.php file by using apache server.


As the Figure below



Now try to view the source code..
the source code will display only

"html"
"body"
hai
"/body"
"/html"

the script that you used is hidden...

Yosh :)

No comments: