How to Write a Hello World Program in PHP
Hypertext Preprocessor is a widely used, it is a Programming and general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. PHP 5+ version fully supports OOP programming. There are plenty of PHP frameworks which can be used for rapid development of web applications. CakePHP, Zend, Codeigniter, Smarty are few examples of them.
EditSteps
-
1Before going into "Hello World" programme of PHP, Download & Install XAMPP in windows platform.Ad
-
2After installation you can see a 'htdocs' folder(xampp\htdocs) in XAMPP installed folder. All PHP files should be inside of 'htdocs' folder.
-
3PHP coding starts with <?php and ends with ?>.
- A PHP file is combination of html tags and PHP code.
- Write the codes such as
- <?php
- echo "Hello World";
- ?>
- Write the codes such as
- Each code line in PHP ends with a semicolon(;).
- Echo and print are basically used for displaying information in browser.
- A PHP file is combination of html tags and PHP code.
-
4Save it. The PHP file must be saved with the .php extension.Ad
We could really use your help!
cats?

Facebook applications?

currency exchange?

sunless tanning?

Article Info
Categories: Programming
Thanks to all authors for creating a page that has been read 8,075 times.
About this wikiHow