[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
PHPHelloWorld
do it!
Simply open a text editor, Notepad in Windows works well. Type in the code below and save it as hello_world.php
Then you just have to run it on a webserver that has PHP installed. See the Beginners Guide to PHP for details on getting and installing PHP.
That's it! You have created your 1st PHP page!
Back to PHP start page
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
PHPHelloWorld
Hello, World
Hello, World is by far the simplest and most used example in any programming language. It is used just to get your feet wet in the specific programming language and let you see that you CANSimply open a text editor, Notepad in Windows works well. Type in the code below and save it as hello_world.php
<html>
<head>
<title>Hello, PHP World!</title>
</head>
<body>
<?php
echo "Hello, PHP World!";
?>
</body>
</html>
Then you just have to run it on a webserver that has PHP installed. See the Beginners Guide to PHP for details on getting and installing PHP.
That's it! You have created your 1st PHP page!
Back to PHP start page
'Hello world' links
- C
- C++
- C++ Builder, console
- C++ Builder, VCL
- C++ Builder, CLX
- C++ BuilderX, console
- C++ BuilderX, Win32 API
- C#
- PHP
- Prolog
- Visual Prolog
- Win32 API
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
