DEV Community

Cover image for PHP Hello World by Katheesh
кαтнєєѕкυмαɾ
кαтнєєѕкυмαɾ

Posted on

PHP Hello World by Katheesh

Hi my dear friends, This is my first blog. I will try to write blog to share my tricks and techniques with others.

Today we'll see how to write basic program of php server side scripting..

💥 First Step

Need a basic software to run php scripts.
🎯 Apache server (xampp or wampp or lampp)
🎯 A text editor
🎯 A browser

💥 Second Step

🎯 Start apache server.
🎯 Open text editor and type following codes

<?php 
    echo "hello world!"
?>
Enter fullscreen mode Exit fullscreen mode

💥 Third Step

🎯 Save the file with .php extension on the apache server root folder (if you use xampp save on Xampp/htdocs).

💥 Fourth Step

🎯 Open Browser
🎯 navigate to http://localhost/Your folder name/Your file Name

💥 Conclusion

If you become a php script developer properly learn basic syntax's of php and need database concepts.

About Hello world.

"Hello, World!" program generally is a computer program that outputs or displays the message "Hello, World!". Such a program is very simple in most programming languages, and is often used to illustrate the basic syntax of a programming language. It is often the first program written by people learning to code.

😍 Have a good day.

Top comments (0)