If you want something you've never had, you must be willing to do something you've never done!

Powered by Blogger.

Php Programming Tutorial "HELLO WORLD" 1

Cerita Semalam Aaz | 10:27 PM | ,


Your browser will try to render any file with the extension .html that you point it to.
As an example this is the Hello World html version:
Hello World
Type it in a plain text editor, such as notepad, and save it as hello_world.html. Then type the next line in the browser's address bar, replacing /path/to/ with the real directory path where you saved your file:
file:///path/to/hello_world.html
Although it works, the fact is that it is wrong HTML. The correct version is:
<html>
<head>
<title>Hello World</title>
</head>
<body>
Hello World
</body>
</html>
We will not in this tutorial enter the HTML realm. But i strongly suggest you to try to improve your HTML as you get used to web programming. It is quite simple and will lead to much better rendered pages in all browsers.

Page Source

Whenever you want to see what code the browser is using to generate a page ask it to show the page source. In Firefox just typeCtrl-U. In Internet Explorer right-click on the page and click "Page Source" or something like that depending on the version. Try it in this page.
Yes, everybody in the whole world can see your source. Any attempt to hide it is counter productive and futile. Get used to the idea that all HTML will always be there. But don't worry, the really valuable part of your site is, as we will see later, PHP code that will be hidden in your Web server.

1 Responses So Far:

alga said...

aaz is good...
but i'm better than you.... ^_^
just kidding

Related Post

 
Back To Top