try your Your first simple php example

Filed in php-lesson0 0 comments

in ths exampel I want to show you the most basic and simple example of a php program.as I will discuss later the php will not have aany thing eith the layout of,events,on the fly document object model(DOM) manipulation, or really everything about the look and feel of a webpage.in fact what php does is invisible to the eyes of an end user.for designing you must do somthing to the css and html of a webpage and the php will do the things in the back end.
the php code will be executed insiede of html.so you will ask how php parser will recognize php code inside of your html document.
the answer is you will tell the program when spring into action by using special php tags at the begining of each php section, this proccess is called scaping from HTML ot scaping into php.everything within that tag is understood by the php parser to be php code.everythings outside of these tags does not concern the server and will simply be passed along and left for the client to start outwether its HTML or JavaScript or somthing else.
the most universally effective php tag style is
so lest get started to create your first php program,so open your text editor such as notepad or DreamWeaver(DW), and then simply type the following codee into that

<html>
<head>
<title>try your Your first simple php example<title>
<body>
<?php
print("Hello World");
?>
</body>
</html>

you should get a result such as this.

http://woshka.com/php-samples/your-first-php-code/

congratulations
you made your first php program.
everything results you got without the following means that you have done somthing wrong or the webserver is not well configiured and has some kind of misconfigration in installing that.

No related posts.

Posted by voshka   @   19 February 2010 0 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone