PHP Hello world Program
First of all install wamp or xampp in your computer.
Step 2 : Install Notepad++ on your system.
Step 3 : Create a new File and save it as anyname and with extension .php like index1.php in side www directory of wamp server.
Step 4 : add following code in your page its simple html page.
Step 7 : Now lets Execute this launch wamp manage normally placed in c:/wamp/wamp-manager.exe
Step 8 : Now open browser andopen page localhost/index1.php
you will see output as
First of all install wamp or xampp in your computer.
Step 2 : Install Notepad++ on your system.
Step 3 : Create a new File and save it as anyname and with extension .php like index1.php in side www directory of wamp server.
Step 4 : add following code in your page its simple html page.
<!doctype html>
<html>
<head>
<title>Hello World PHP</title>
</head>
<body>
</body>
</html>Step 5 : make a php block in side dody section of your page.
<?php
//this is php block
?>
Step 6: write echo "Hello World PHP"; inside php block.<!doctype html> <html> <head> <title>Hello World PHP</title> </head> <body> <?php echo "Hello World PHP"; ?> </body> </html>Final Page look like this:
Step 7 : Now lets Execute this launch wamp manage normally placed in c:/wamp/wamp-manager.exe
Step 8 : Now open browser andopen page localhost/index1.php
you will see output as
No comments:
Post a Comment